Skip to content

Instantly share code, notes, and snippets.

@Quard
Created July 16, 2019 08:53
Show Gist options
  • Save Quard/74861f27fb956bbe088c002a8574ffbe to your computer and use it in GitHub Desktop.
Save Quard/74861f27fb956bbe088c002a8574ffbe to your computer and use it in GitHub Desktop.
Benchmark results for article "My story about Go, Python and benkmarks."

Python + Redis

API get

Running 30s test @ http://rpi:5000/api/v1/url/aaaa
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   489.29ms  196.29ms   1.38s    82.02%
    Req/Sec    68.43     31.64   192.00     72.98%
  24253 requests in 30.10s, 4.88MB read
Requests/sec:    805.80
Transfer/sec:    166.07KB

API post

Running 30s test @ http://rpi:5000/api/v1/url/
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   705.30ms  164.40ms   1.33s    70.35%
    Req/Sec    48.80     32.45   190.00     73.02%
  16588 requests in 30.08s, 3.34MB read
Requests/sec:    551.44
Transfer/sec:    113.64KB

Redirect

Running 30s test @ http://rpi:5000/aaaa
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   565.02ms  302.68ms   1.91s    62.80%
    Req/Sec    62.40     35.70   245.00     65.92%
  20842 requests in 30.09s, 4.55MB read
Requests/sec:    692.64
Transfer/sec:    154.90KB

Go + Bolt

API get

Running 30s test @ http://rpi:5000/api/v1/url/aaaa
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   164.54ms   23.21ms 581.73ms   78.59%
    Req/Sec   201.33     56.80   450.00     70.14%
  71773 requests in 30.10s, 11.50MB read
Requests/sec:   2384.19
Transfer/sec:    391.16KB

API post

Running 30s test @ http://rpi:5000/api/v1/url/
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.32s   922.03ms   1.92s    66.67%
    Req/Sec     8.18      7.24    39.00     72.36%
  428 requests in 30.08s, 70.22KB read
  Socket errors: connect 0, read 0, write 0, timeout 425
Requests/sec:     14.23
Transfer/sec:      2.33KB

Redirect

Running 30s test @ http://rpi:5000/aaaa
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   162.15ms   26.61ms 626.72ms   80.60%
    Req/Sec   204.23     62.34   480.00     69.65%
  72810 requests in 30.09s, 9.10MB read
Requests/sec:   2419.49
Transfer/sec:    309.52KB

Go + Redis

API get

Running 30s test @ http://rpi:5000/api/v1/url/aaaa
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   172.06ms   26.29ms   1.05s    86.62%
    Req/Sec   192.95     45.42   330.00     70.07%
  68845 requests in 30.10s, 11.03MB read
Requests/sec:   2287.22
Transfer/sec:    375.25KB

API post

Running 30s test @ http://rpi:5000/api/v1/url/
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   171.22ms   31.78ms   1.24s    83.22%
    Req/Sec   193.78     44.98   425.00     70.51%
  69146 requests in 30.07s, 11.08MB read
Requests/sec:   2299.56
Transfer/sec:    377.27KB

Redirect

Running 30s test @ http://rpi:5000/aaaa
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   166.38ms   22.76ms 956.65ms   87.46%
    Req/Sec   199.57     48.44   330.00     66.68%
  71093 requests in 30.09s, 8.88MB read
Requests/sec:   2362.84
Transfer/sec:    302.28KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment