Skip to content

Instantly share code, notes, and snippets.

@dreampuf
Created December 6, 2012 09:57
Show Gist options
  • Save dreampuf/4223370 to your computer and use it in GitHub Desktop.
Save dreampuf/4223370 to your computer and use it in GitHub Desktop.
ab Benchmark plot
# output as png image
set terminal png
# save file to "benchmark.png"
set output "benchmark.png"
# graph title
set title "Benchmark for gunicorn(default) vs. gunicorn(gevent) vs. gunicorn(eventlet) vs. Flask default"
# aspect ratio for image size
set size 1,1
# enable grid on y-axis
set grid y
# x-axis label
set xlabel "Request"
# y-axis label
set ylabel "Response Time (ms)"
# plot data from bench1.tsv,bench2.tsv and bench3.tsv using column 10 with smooth sbezier lines
plot "b1.tsv" using 10 smooth sbezier with lines title "gunicorn:", \
"b2.tsv" using 10 smooth sbezier with lines title "flask default:", \
"b3.tsv" using 10 smooth sbezier with lines title "gevent:", \
"b4.tsv" using 10 smooth sbezier with lines title "eventlet:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment