comparison third_party/wrk/scripts/report.lua @ 178:94705b5986b3

[ThirdParty] Added WRK and luajit for load testing.
author MrJuneJune <me@mrjunejune.com>
date Thu, 22 Jan 2026 20:10:30 -0800
parents
children
comparison
equal deleted inserted replaced
177:24fe8ff94056 178:94705b5986b3
1 -- example reporting script which demonstrates a custom
2 -- done() function that prints latency percentiles as CSV
3
4 done = function(summary, latency, requests)
5 io.write("------------------------------\n")
6 for _, p in pairs({ 50, 90, 99, 99.999 }) do
7 n = latency:percentile(p)
8 io.write(string.format("%g%%,%d\n", p, n))
9 end
10 end