mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
347 B
11 lines
347 B
11 years ago
|
-- example reporting script which demonstrates a custom
|
||
|
-- done() function that prints latency percentiles as CSV
|
||
|
|
||
|
done = function(summary, latency, requests)
|
||
|
io.write("------------------------------\n")
|
||
|
for _, p in pairs({ 50, 90, 99, 99.999 }) do
|
||
|
n = latency:percentile(p)
|
||
|
io.write(string.format("%g%%,%d\n", p, n))
|
||
|
end
|
||
|
end
|