wrk is an HTTP benchmarking tool for driving concurrent requests against a running service and measuring latency, throughput, and latency distributions. section 3.5
Use it after starting the REST API, then target an endpoint with a command such as `wrk --latency http://127.0.0.1:8080/hello`. The report includes test duration, threads, connections, average and maximum latency, percentiles, requests per second, and transfer rate.
Comparing database-backed endpoints
A PostgreSQL-backed endpoint reports 1,460.66 requests per second and 5.64 ms median latency, while the SQLite version reports 188,469.82 requests per second and 41 microseconds median latency under the shown test configuration. These figures quantify the performance difference, rather than merely asserting it.
