Skip to content

Instantly share code, notes, and snippets.

@simonask
Created May 27, 2014 16:22
Show Gist options
  • Save simonask/a746b17a0cac7f320f42 to your computer and use it in GitHub Desktop.
Save simonask/a746b17a0cac7f320f42 to your computer and use it in GitHub Desktop.
#include <w>
int main(int argc, char const *argv[])
{
w::App app { argc, argv };
app.get("/hello", [](w::Request&) { return w::render_text("Hello world"); });
return app.run();
}
$ wrk -t10 -c400 http://localhost:3000/hello
Running 10s test @ http://localhost:3000/hello
10 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.46ms 1.96ms 6.79ms 83.86%
Req/Sec 6.53k 3.16k 24.11k 81.44%
616275 requests in 10.00s, 44.67MB read
Socket errors: connect 0, read 990, write 0, timeout 459
Requests/sec: 61629.31
Transfer/sec: 4.47MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment