Skip to content

Commit 8305eb5

Browse files
author
Dan Lecocq
committed
Updated gnuplot script to plot timings relative to std::tr1::unordered_map
1 parent d2057cf commit 8305eb5

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

bench.gnuplot

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
set terminal png
1+
set terminal png size 1200, 800
22

33
set output "insert.png"
4-
set title "Insertion Time"
5-
set log xy
6-
set yrange [1:10000]
7-
set xrange [10:95000]
4+
set title "Insertion Time Relative to std::tr1::unordered_map"
5+
set log x
6+
set yrange [0:5]
7+
set xrange [50:95000]
88
set xlabel "Items Inserted"
9-
set ylabel "Ticks To Insert (Best of 10 Consecutive Runs)"
10-
plot 'bench.dat' using 1:2 with lines title 'array-hash', \
11-
'bench.dat' using 1:5 with lines title 'std::map', \
12-
'bench.dat' using 1:8 with lines title 'std::tr1::unordered_map'
9+
set ylabel "Relative Time (Best of 10 Consecutive Runs)"
10+
plot 'bench.dat' using 1:($2/$8) with lines title 'array-hash', \
11+
'bench.dat' using 1:($5/$8) with lines title 'std::map', \
12+
'bench.dat' using 1:($8/$8) with lines title 'std::tr1::unordered_map'
1313

1414
set output "query.png"
15-
set title "Query Time"
16-
set log xy
17-
set yrange [1:10000]
18-
set xrange [10:95000]
15+
set title "Query Time Relative to std::tr1::unordered_map"
16+
set log x
17+
set yrange [0:5]
18+
set xrange [50:95000]
1919
set xlabel "Items Queried and Contained"
20-
set ylabel "Ticks To Query (Best of 10 Consecutive Runs)"
21-
plot 'bench.dat' using 1:3 with lines title 'array-hash', \
22-
'bench.dat' using 1:6 with lines title 'std::map', \
23-
'bench.dat' using 1:9 with lines title 'std::tr1::unordered_map'
20+
set ylabel "Relative Time (Best of 10 Consecutive Runs)"
21+
plot 'bench.dat' using 1:($3/$9) with lines title 'array-hash', \
22+
'bench.dat' using 1:($6/$9) with lines title 'std::map', \
23+
'bench.dat' using 1:($9/$9) with lines title 'std::tr1::unordered_map'
2424

2525
set output "random.png"
26-
set title "Random Query Time"
27-
set log xy
28-
set yrange [1:10000]
29-
set xrange [10:95000]
26+
set title "Random Query Time Relative to std::tr1::unordered_map"
27+
set log x
28+
set yrange [0:5]
29+
set xrange [50:95000]
3030
set xlabel "Items Queried and Contained"
31-
set ylabel "Ticks To Query (Best of 10 Consecutive Runs)"
32-
plot 'bench.dat' using 1:4 with lines title 'array-hash', \
33-
'bench.dat' using 1:7 with lines title 'std::map', \
34-
'bench.dat' using 1:10 with lines title 'std::tr1::unordered_map'
31+
set ylabel "Relative Time (Best of 10 Consecutive Runs)"
32+
plot 'bench.dat' using 1:($4/$10) with lines title 'array-hash', \
33+
'bench.dat' using 1:($7/$10) with lines title 'std::map', \
34+
'bench.dat' using 1:($10/$10) with lines title 'std::tr1::unordered_map'

0 commit comments

Comments
 (0)