bench.plt (940B)
1 set terminal postscript color 2 3 set key top left 4 set xlabel "Number of timeouts" 5 set ylabel "Time\n(microseconds)" 6 #set logscale x 7 8 set title "Time spent installing timeouts" font ",20" 9 plot 'heap-add.dat' using 1:($2*1000000) title "min-heap" with lines ls 1 lw 3 lc "red", \ 10 'wheel-add.dat' using 1:($2*1000000) title "hierarchical wheel" with lines ls 1 lw 3 lc "forest-green" 11 12 set title "Time spent deleting timeouts" font ",20" 13 plot 'heap-del.dat' using 1:($2*1000000) title "min-heap" with lines ls 1 lw 3 lc "red", \ 14 'wheel-del.dat' using 1:($2*1000000) title "hierarchical wheel" with lines ls 1 lw 3 lc "forest-green" 15 16 set title "Time spent expiring timeouts\n(by iteratively updating clock ~1000 times)" font ",20" 17 plot 'heap-expire.dat' using 1:($2*1000000) title "min-heap" with lines ls 1 lw 3 lc "red", \ 18 'wheel-expire.dat' using 1:($2*1000000) title "hierarchical wheel" with lines ls 1 lw 3 lc "forest-green"