|
1 |
| -set terminal png |
| 1 | +set terminal png size 1200, 800 |
2 | 2 |
|
3 | 3 | 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] |
8 | 8 | 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' |
13 | 13 |
|
14 | 14 | 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] |
19 | 19 | 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' |
24 | 24 |
|
25 | 25 | 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] |
30 | 30 | 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