1
0
mirror of https://github.com/wg/wrk synced 2026-05-19 20:19:52 +08:00

add a few example scripts

This commit is contained in:
Will
2013-12-07 14:09:44 +09:00
Unverified
parent 7763ce3c9b
commit 44aa1b4aab
7 changed files with 51 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
-- 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