forked from eclipse-zenoh/zenoh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ce074e
commit 40e219a
Showing
7 changed files
with
885 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/result/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
cargo build --example z_pub_thr --example z_sub_thr --profile fast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export SUB_IP=192.168.13.1 | ||
export port_base=7000 | ||
export payload=1024 | ||
export priorities=(1 2 3) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd "$script_dir" | ||
|
||
source config.sh | ||
|
||
# payload="$1" | ||
# shift || { | ||
# echo "Usage: $0 PAYLOAD_SIZE PRIORITY..." >&2 | ||
# exit 1 | ||
# } | ||
|
||
for prio in ${priorities[@]}; do | ||
export PORT=$((port_base+prio)) | ||
config_file="pub.$PORT.json5" | ||
envsubst < pub.json5.in > "$config_file" | ||
echo ../target/fast/examples/z_pub_thr "$payload" -c "$config_file" -p "$prio" | ||
done | parallel --lb -j0 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd "$script_dir" | ||
|
||
source config.sh | ||
|
||
dt="$(date '+%Y-%m-%d-%H-%M-%S')" | ||
out_dir="result/$dt" | ||
|
||
mkdir -p result | ||
mkdir "$out_dir" | ||
|
||
for prio in ${priorities[@]}; do | ||
export PORT=$((port_base+prio)) | ||
config_file="sub.$PORT.json5" | ||
envsubst < sub.json5.in > "$config_file" | ||
echo "../target/fast/examples/z_sub_thr -c \"$config_file\" --no-stdin | tee \"${out_dir}/prio-${prio}.payload-${payload}.txt\"" | ||
done | parallel --lb -j0 |