Create a gist now

Instantly share code, notes, and snippets.

@methane /0.README.md
Last active Aug 29, 2015

What would you like to do?
http-parser vs picohttpparser
wrk$ ./bench.sh
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 221.08us 225.62us 16.29ms 96.37%
Req/Sec 37.24k 7.90k 65.22k 63.38%
11179325 requests in 20.00s, 1.71GB read
Requests/sec: 559031.18
Transfer/sec: 87.43MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 229.43us 285.18us 17.18ms 97.84%
Req/Sec 36.09k 7.14k 60.00k 66.36%
10839850 requests in 20.00s, 1.66GB read
Requests/sec: 542034.26
Transfer/sec: 84.78MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 227.53us 260.00us 20.07ms 96.65%
Req/Sec 36.30k 7.58k 62.22k 63.93%
10910067 requests in 20.00s, 1.67GB read
Requests/sec: 545552.78
Transfer/sec: 85.33MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 232.91us 309.35us 29.99ms 98.05%
Req/Sec 35.81k 7.99k 62.89k 64.65%
10760605 requests in 20.00s, 1.64GB read
Requests/sec: 538079.86
Transfer/sec: 84.16MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 491.48us 372.93us 20.76ms 92.81%
Req/Sec 51.38k 10.72k 95.44k 66.14%
15511969 requests in 20.00s, 2.37GB read
Requests/sec: 775731.29
Transfer/sec: 121.33MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 487.22us 287.85us 16.82ms 88.59%
Req/Sec 51.42k 9.50k 85.33k 66.77%
15530641 requests in 19.99s, 2.37GB read
Requests/sec: 777028.07
Transfer/sec: 121.53MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 490.08us 320.65us 24.33ms 91.50%
Req/Sec 51.73k 10.03k 88.33k 67.36%
15621828 requests in 19.99s, 2.39GB read
Requests/sec: 781292.86
Transfer/sec: 122.20MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 483.17us 336.14us 16.83ms 90.11%
Req/Sec 51.82k 10.52k 97.00k 67.68%
15644629 requests in 20.00s, 2.39GB read
Requests/sec: 782338.04
Transfer/sec: 122.36MB
wrk$ ./bench.sh
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 223.65us 318.29us 20.07ms 99.42%
Req/Sec 37.51k 7.91k 63.33k 64.63%
11258820 requests in 20.00s, 1.72GB read
Requests/sec: 562995.92
Transfer/sec: 88.05MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 216.74us 250.79us 17.00ms 97.36%
Req/Sec 37.82k 7.72k 64.67k 65.74%
11356848 requests in 20.00s, 1.73GB read
Requests/sec: 567908.05
Transfer/sec: 88.82MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 219.33us 272.10us 16.46ms 96.39%
Req/Sec 37.52k 8.06k 67.44k 67.64%
11274113 requests in 20.00s, 1.72GB read
Requests/sec: 563776.69
Transfer/sec: 88.18MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 216.59us 281.34us 16.53ms 97.93%
Req/Sec 37.90k 8.12k 67.78k 64.38%
11393031 requests in 20.00s, 1.74GB read
Requests/sec: 569732.37
Transfer/sec: 89.11MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 469.10us 409.80us 18.47ms 95.93%
Req/Sec 53.61k 11.34k 113.00k 68.41%
16161896 requests in 20.00s, 2.47GB read
Requests/sec: 808223.91
Transfer/sec: 126.41MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 467.82us 393.17us 20.86ms 95.35%
Req/Sec 54.27k 10.96k 101.56k 68.41%
16369577 requests in 20.00s, 2.50GB read
Requests/sec: 818628.66
Transfer/sec: 128.04MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 479.61us 396.51us 17.12ms 93.20%
Req/Sec 53.01k 10.40k 90.78k 67.52%
16006741 requests in 19.99s, 2.44GB read
Requests/sec: 800543.35
Transfer/sec: 125.21MB
+ ./wrk -c128 -t16 -d20 http://127.0.0.1:8000/ -s scripts/pipeline.lua
Running 20s test @ http://127.0.0.1:8000/
16 threads and 128 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 459.47us 341.88us 20.34ms 93.09%
Req/Sec 54.69k 10.60k 97.00k 66.45%
16520231 requests in 20.00s, 2.52GB read
Requests/sec: 826165.67
Transfer/sec: 129.21MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment