Created
May 27, 2014 16:22
-
-
Save simonask/a746b17a0cac7f320f42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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