Created
April 4, 2018 21:39
-
-
Save joshbeckman/bb53039d0e7f5facad9be8548ce85357 to your computer and use it in GitHub Desktop.
Sourced via http://www.bradlanders.com/2013/04/15/apache-bench-and-gnuplot-youre-probably-doing-it-wrong/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Let's output to a jpeg file | |
set terminal jpeg size 500,500 | |
# This sets the aspect ratio of the graph | |
set size 1, 1 | |
# The file we'll write to | |
set output "timeseries-narro-10.jpg" | |
# The graph title | |
set title "Benchmark testing 1000(10c)" | |
# Where to place the legend/key | |
set key left top | |
# Draw gridlines oriented on the y axis | |
set grid y | |
# Specify that the x-series data is time data | |
set xdata time | |
# Specify the *input* format of the time data | |
set timefmt "%s" | |
# Specify the *output* format for the x-axis tick labels | |
set format x "%S" | |
# Label the x-axis | |
set xlabel 'seconds' | |
# Label the y-axis | |
set ylabel "response time (ms)" | |
# Tell gnuplot to use tabs as the delimiter instead of spaces (default) | |
set datafile separator '\t' | |
# Plot the data | |
plot "narro-1k.tsv" every ::2 using 2:5 title 'response time' with points | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment