bench.plt 940 B

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