diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-04-13 08:58:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-04-15 09:03:22 -0400 |
commit | 32e80ea3d32d5fd8207d16f9e5b26defa0d98a7c (patch) | |
tree | a8260d5422c2371c3b630d9435052ea299f15336 /src/ext/timeouts/bench/bench.plt | |
parent | 0e354ad45966d29ff4cd75854dbd1715270a2168 (diff) | |
download | tor-32e80ea3d32d5fd8207d16f9e5b26defa0d98a7c.tar.gz tor-32e80ea3d32d5fd8207d16f9e5b26defa0d98a7c.zip |
Import timeouts.c directly from William Ahern's git.
Imported from here: https://github.com/wahern/timeout
Imported as of upstream e5a9e8bfaa9c631bdc54002181795931b65bdc1a.
All sources unmodified.
Diffstat (limited to 'src/ext/timeouts/bench/bench.plt')
-rw-r--r-- | src/ext/timeouts/bench/bench.plt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ext/timeouts/bench/bench.plt b/src/ext/timeouts/bench/bench.plt new file mode 100644 index 0000000000..6e143c65e1 --- /dev/null +++ b/src/ext/timeouts/bench/bench.plt @@ -0,0 +1,19 @@ +set terminal postscript color + +set key top left +set xlabel "Number of timeouts" +set ylabel "Time\n(microseconds)" +#set logscale x + +set title "Time spent installing timeouts" font ",20" +plot 'heap-add.dat' using 1:($2*1000000) title "min-heap" with lines ls 1 lw 3 lc "red", \ + 'wheel-add.dat' using 1:($2*1000000) title "hierarchical wheel" with lines ls 1 lw 3 lc "forest-green" + +set title "Time spent deleting timeouts" font ",20" +plot 'heap-del.dat' using 1:($2*1000000) title "min-heap" with lines ls 1 lw 3 lc "red", \ + 'wheel-del.dat' using 1:($2*1000000) title "hierarchical wheel" with lines ls 1 lw 3 lc "forest-green" + +set title "Time spent expiring timeouts\n(by iteratively updating clock ~1000 times)" font ",20" +plot 'heap-expire.dat' using 1:($2*1000000) title "min-heap" with lines ls 1 lw 3 lc "red", \ + 'wheel-expire.dat' using 1:($2*1000000) title "hierarchical wheel" with lines ls 1 lw 3 lc "forest-green" + |