### Run a Basic HTTP Benchmark with wrk Source: https://github.com/wg/wrk/blob/master/README.md This example demonstrates how to execute a simple HTTP benchmark using wrk. It configures the test to run for 30 seconds, utilizing 12 threads and maintaining 400 concurrent HTTP connections to the specified URL. ```Shell wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html ``` -------------------------------- ### wrk Command Line Options Reference Source: https://github.com/wg/wrk/blob/master/README.md This section provides a comprehensive reference for all available command-line options in wrk, detailing their purpose and how they influence the benchmarking process. Options include settings for connections, duration, threads, scripting, and custom headers. ```APIDOC -c, --connections: total number of HTTP connections to keep open with each thread handling N = connections/threads -d, --duration: duration of the test, e.g. 2s, 2m, 2h -t, --threads: total number of threads to use -s, --script: LuaJIT script, see SCRIPTING -H, --header: HTTP header to add to request, e.g. "User-Agent: wrk" --latency: print detailed latency statistics --timeout: record a timeout if a response is not received within this amount of time. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.