wg/wrk ? reverse-engineered prompt

Reverse engineered prompt

Build me a fast command line HTTP benchmarking tool like wrk.

I want to be able to point it at a URL and have it hammer a server with a chosen number of threads, connections, and duration, then print a clean summary of how many requests it handled, how much data came back, requests per second, transfer rate, and latency stats when asked. It should feel like a modern load tester that can generate serious traffic on a single machine, and it should work well with lots of open connections.

Please also support adding custom headers and a timeout option, and make sure the basic usage looks simple, something like running a test against localhost for 30 seconds. If you can, include support for LuaJIT scripting so I can customize request generation and response handling, plus a couple of example scripts. Use the existing README as the guide and look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab