Skip to content

Instantly share code, notes, and snippets.

@xcxlt
Created July 1, 2021 13:10
Show Gist options
  • Save xcxlt/c1e183a42acd38ba3daefd48ded18f27 to your computer and use it in GitHub Desktop.
Save xcxlt/c1e183a42acd38ba3daefd48ded18f27 to your computer and use it in GitHub Desktop.

Zig with ZHP (release-fast=true) (https://pastebin.com/8L4WZpbE):

wrk -t6 -c128 -d10 --latency http://localhost:9000
Running 10s test @ http://localhost:9000
  6 threads and 128 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.36ms    1.69ms  77.39ms   96.67%
    Req/Sec    15.37k     3.56k   26.74k    64.67%
  Latency Distribution
     50%    1.14ms
     75%    1.44ms
     90%    2.12ms
     99%    4.06ms
  919039 requests in 10.02s, 112.19MB read
Requests/sec:  91705.14
Transfer/sec:     11.19MB

Go with fasthttp (https://pastebin.com/RAWajkmH)

wrk -t6 -c128 -d10 --latency http://localhost:12345
Running 10s test @ http://localhost:12345
  6 threads and 128 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    11.51ms   27.02ms 319.23ms   89.30%
    Req/Sec    17.95k    11.50k   60.16k    71.04%
  Latency Distribution
     50%  720.00us
     75%    4.30ms
     90%   42.35ms
     99%  121.67ms
  1031267 requests in 10.10s, 142.61MB read
Requests/sec: 102112.70
Transfer/sec:     14.12MB

on a 2017 macbook pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment