Skip to content

Instantly share code, notes, and snippets.

@normanmaurer
Last active May 7, 2018 08:29
Show Gist options
  • Save normanmaurer/5633803 to your computer and use it in GitHub Desktop.
Save normanmaurer/5633803 to your computer and use it in GitHub Desktop.
Using:
* 8 threads
* 1024 concurrent connections
* run for 20 seconds
* 64 requests pipelined
## VERTX
norman@dev-linux:~/workspace/vertx-examples/src/main/java$ vertx run httpperf/PerfServer.java -instances 4
# Run WRK 4 times for 20 seconds so the JIT can kick in
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 750.51ms 507.03ms 2.75s 65.35%
Req/Sec 4.75k 2.16k 7.00k 60.38%
1118800 requests in 20.00s, 40.54MB read
Socket errors: connect 11, read 0, write 0, timeout 1044
Requests/sec: 55931.56
Transfer/sec: 2.03MB
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 766.84ms 389.60ms 2.28s 70.62%
Req/Sec 7.36k 1.61k 9.00k 76.92%
1365288 requests in 20.01s, 49.48MB read
Socket errors: connect 11, read 0, write 0, timeout 280
Requests/sec: 68242.35
Transfer/sec: 2.47MB
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 674.28ms 366.26ms 2.05s 70.83%
Req/Sec 8.14k 1.50k 10.00k 80.02%
1546249 requests in 20.00s, 56.04MB read
Socket errors: connect 11, read 0, write 0, timeout 230
Requests/sec: 77301.72
Transfer/sec: 2.80MB
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 754.35ms 353.45ms 1.62s 71.07%
Req/Sec 7.88k 1.21k 9.00k 92.00%
1466072 requests in 20.00s, 53.13MB read
Socket errors: connect 11, read 0, write 0, timeout 99
Requests/sec: 73288.05
Transfer/sec: 2.66MB
# NETTY
norman@dev-linux:~/workspace/netty$ java -cp /home/norman/workspace/netty/all/target/netty-all-4.0.0.Final-SNAPSHOT.jar:/home/norman/workspace/netty/example/target/netty-example-4.0.0.Final-SNAPSHOT.jar io.netty.example.http.snoop.HttpSnoopServer 8080
# Run WRK 4 times for 20 seconds so the JIT can kick in
norman@dev-linux:~$
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 621.94ms 509.07ms 3.60s 76.17%
Req/Sec 7.38k 4.00k 12.00k 63.32%
1988032 requests in 20.01s, 646.51MB read
Socket errors: connect 11, read 0, write 0, timeout 258
Requests/sec: 99355.38
Transfer/sec: 32.31MB
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 487.09ms 130.45ms 871.33ms 89.81%
Req/Sec 14.41k 2.31k 19.00k 86.82%
2466752 requests in 20.01s, 802.20MB read
Socket errors: connect 11, read 0, write 0, timeout 102
Requests/sec: 123266.98
Transfer/sec: 40.09MB
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 485.18ms 133.60ms 710.41ms 89.94%
Req/Sec 14.39k 1.83k 18.00k 90.70%
2471872 requests in 20.01s, 803.86MB read
Socket errors: connect 11, read 0, write 0, timeout 153
Requests/sec: 123518.01
Transfer/sec: 40.17MB
norman@dev-linux:~$ ./Apps/wrk/wrk-pipeline -d20 -t8 -c 1024 --pipeline 64 http://localhost:8080
Running 20s test @ http://localhost:8080
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 491.27ms 131.16ms 982.18ms 91.73%
Req/Sec 14.47k 1.91k 18.00k 89.94%
2471040 requests in 20.01s, 803.59MB read
Socket errors: connect 11, read 0, write 0, timeout 139
Requests/sec: 123487.12
Transfer/sec: 40.16MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment