http://www.bradlanders.com/2013/04/15/apache-bench-and-gnuplot-youre-probably-doing-it-wrong/
In gnuplot command line
# 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 "graphs/timeseries.jpg"
# The graph title
set title "Benchmark testing"
# 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 "data/testing.tsv" every ::2 using 2:5 title 'response time' with points
Result graph
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Server Software:
Server Hostname: 127.0.0.1
Server Port: 3000
Document Path: /data/file.zip
Document Length: 11580702 bytes
Concurrency Level: 10
Time taken for tests: 25.046 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 11580989000 bytes
HTML transferred: 11580702000 bytes
Requests per second: 39.93 [#/sec] (mean)
Time per request: 250.458 [ms] (mean)
Time per request: 25.046 [ms] (mean, across all concurrent requests)
Transfer rate: 451555.03 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 3
Processing: 158 250 30.2 244 335
Waiting: 6 12 3.8 11 41
Total: 158 250 30.2 245 335
Percentage of the requests served within a certain time (ms)
50% 245
66% 252
75% 262
80% 279
90% 295
95% 305
98% 312
99% 328
100% 335 (longest request)
댓글 없음:
댓글 쓰기