Skip to content

Instantly share code, notes, and snippets.

@crackcomm
Last active March 1, 2018 19:58
Show Gist options
  • Save crackcomm/9edd2d48137a1dec3c42879b539e17f9 to your computer and use it in GitHub Desktop.
Save crackcomm/9edd2d48137a1dec3c42879b539e17f9 to your computer and use it in GitHub Desktop.
Seastar vs Golang HTTP Server benchmark.
  • -c - concurrency
  • -t - threads

Seastar port 10000 Golang port 10001

~ wrk -t8 -c400 -d30s http://127.0.0.1:10000        
Running 30s test @ http://127.0.0.1:10000
  8 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.29ms    2.93ms 102.65ms   76.89%
    Req/Sec    12.27k     2.30k   35.81k    69.48%
  2937236 requests in 30.10s, 369.75MB read
Requests/sec:  97585.23
Transfer/sec:     12.28MB~ wrk -t8 -c400 -d30s http://127.0.0.1:10001
Running 30s test @ http://127.0.0.1:10001
  8 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    20.13ms   43.18ms 570.11ms   91.21%
    Req/Sec     7.42k     3.70k   21.40k    72.95%
  1774918 requests in 30.09s, 208.20MB read
Requests/sec:  58989.62
Transfer/sec:      6.92MB~ wrk -t8 -c1000 -d30s http://127.0.0.1:10001
Running 30s test @ http://127.0.0.1:10001
  8 threads and 1000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    42.70ms   88.90ms   1.09s    90.85%
    Req/Sec     8.19k     4.79k   37.43k    67.60%
  1944215 requests in 30.09s, 228.06MB read
Requests/sec:  64608.83
Transfer/sec:      7.58MB~ wrk -t8 -c1000 -d30s http://127.0.0.1:10000
Running 30s test @ http://127.0.0.1:10000
  8 threads and 1000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    14.60ms   51.87ms   1.77s    99.27%
    Req/Sec    11.28k     2.14k   31.88k    88.69%
  2691334 requests in 30.08s, 338.80MB read
Requests/sec:  89465.52
Transfer/sec:     11.26MB~ wrk -t8 -c100 -d30s http://127.0.0.1:10000 
Running 30s test @ http://127.0.0.1:10000
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     0.98ms    0.91ms  25.24ms   90.78%
    Req/Sec    13.81k     1.50k   22.02k    70.42%
  3297751 requests in 30.04s, 415.14MB read
Requests/sec: 109792.02
Transfer/sec:     13.82MB~ wrk -t8 -c100 -d30s http://127.0.0.1:10001
Running 30s test @ http://127.0.0.1:10001
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     5.58ms   12.47ms 236.40ms   90.40%
    Req/Sec     7.95k     3.71k   30.71k    74.34%
  1901946 requests in 30.09s, 223.10MB read
Requests/sec:  63200.72
Transfer/sec:      7.41MB~ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment