-
Notifications
You must be signed in to change notification settings - Fork 1
/
bench.gnuplot
34 lines (31 loc) · 1.31 KB
/
bench.gnuplot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set terminal png size 1200, 800
set output "insert.png"
set title "Insertion Time Relative to std::tr1::unordered_map"
set log x
set yrange [0:5]
set xrange [50:95000]
set xlabel "Items Inserted"
set ylabel "Relative Time (Best of 10 Consecutive Runs)"
plot 'bench.dat' using 1:($2/$8) with lines title 'array-hash', \
'bench.dat' using 1:($5/$8) with lines title 'std::map', \
'bench.dat' using 1:($8/$8) with lines title 'std::tr1::unordered_map'
set output "query.png"
set title "Query Time Relative to std::tr1::unordered_map"
set log x
set yrange [0:5]
set xrange [50:95000]
set xlabel "Items Queried and Contained"
set ylabel "Relative Time (Best of 10 Consecutive Runs)"
plot 'bench.dat' using 1:($3/$9) with lines title 'array-hash', \
'bench.dat' using 1:($6/$9) with lines title 'std::map', \
'bench.dat' using 1:($9/$9) with lines title 'std::tr1::unordered_map'
set output "random.png"
set title "Random Query Time Relative to std::tr1::unordered_map"
set log x
set yrange [0:5]
set xrange [50:95000]
set xlabel "Items Queried and Contained"
set ylabel "Relative Time (Best of 10 Consecutive Runs)"
plot 'bench.dat' using 1:($4/$10) with lines title 'array-hash', \
'bench.dat' using 1:($7/$10) with lines title 'std::map', \
'bench.dat' using 1:($10/$10) with lines title 'std::tr1::unordered_map'