-
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.
The graph stuff should probably be moved to the report repo.
- Loading branch information
Martin Hafskjold Thoresen
committed
Nov 28, 2017
1 parent
0abe7d4
commit 6ef49af
Showing
6 changed files
with
50 additions
and
32 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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,19 @@ | ||
#!/bin/bash | ||
|
||
THREADS="1 2 4 8" | ||
EXECS="queue-crossbeam queue-ebr queue-hp" | ||
BENCHES="queue-transport" | ||
VARIANTS="crossbeam ebr hp" | ||
|
||
for e in $(echo "$EXECS"); do | ||
for n in $(echo "$THREADS"); do | ||
printf "Run %s with %s threads\n" "$n" "$e" | ||
cargo run --release --bin "$e" -- "$n" | ||
for variant in $(echo "$VARIANTS"); do | ||
for bench in $(echo "$BENCHES"); do | ||
files="" | ||
for n in $(echo "$THREADS"); do | ||
cargo run --release --bin "$bench-$variant" -- "$n" | ||
files+="$bench-$variant-$n " | ||
done | ||
paste -d" " $files > "$bench-$variant" | ||
rm $files | ||
done | ||
done | ||
|
||
gnuplot -persist gnuplot | ||
# gnuplot -persist gnuplot |
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 |
---|---|---|
@@ -1,19 +1,25 @@ | ||
#!/bin/gnuplot | ||
|
||
set ytic auto | ||
set xtic auto | ||
|
||
plot 'ebr-1' smooth bezier title "EBR, 1" lc rgb "#ffaaaa",\ | ||
'ebr-2' smooth bezier title "EBR, 2" lc rgb "#ff8888",\ | ||
'ebr-4' smooth bezier title "EBR, 4" lc rgb "#ff6666",\ | ||
'ebr-8' smooth bezier title "EBR, 8" lc rgb "#ff4444",\ | ||
'hp-1' smooth bezier title "HP, 1" lc rgb "#aaffaa",\ | ||
'hp-2' smooth bezier title "HP, 2" lc rgb "#88ff88",\ | ||
'hp-4' smooth bezier title "HP, 4" lc rgb "#66ff66",\ | ||
'hp-8' smooth bezier title "HP, 8" lc rgb "#44ff44",\ | ||
'crossbeam-1' smooth bezier title "Crossbeam, 1" lc rgb "#aaaaff",\ | ||
'crossbeam-2' smooth bezier title "Crossbeam, 2" lc rgb "#8888ff",\ | ||
'crossbeam-4' smooth bezier title "Crossbeam, 4" lc rgb "#6666ff",\ | ||
'crossbeam-8' smooth bezier title "Crossbeam, 8" lc rgb "#4444ff", | ||
|
||
plot show | ||
set style fill solid 0.25 border -1 | ||
set style boxplot outliers pointtype 7 | ||
set style data boxplot | ||
set size square | ||
|
||
set pointsize 0.3 | ||
|
||
set xtics ('t=1' 1, 't=2' 2, 't=4' 3, 't=8' 4) | ||
|
||
set terminal pdf size 10cm,10cm | ||
|
||
|
||
set title "Timings for EBR (transfer)" | ||
set output 'queue-transport-ebr.pdf' | ||
plot for [i=1:4] 'queue-transport-ebr' using (i):i notitle | ||
|
||
set title "Timings for crossbeam (transfer)" | ||
set output 'queue-transport-crossbeam.pdf' | ||
plot for [i=1:4] 'queue-transport-crossbeam' using (i):i notitle | ||
|
||
set title "Timings for HP (transfer)" | ||
set output 'queue-transport-hp.pdf' | ||
plot for [i=1:4] 'queue-transport-hp' using (i):i notitle |