Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Created March 13, 2023 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseluisq/cb0962474210e56e768ff5671b3ddd11 to your computer and use it in GitHub Desktop.
Save joseluisq/cb0962474210e56e768ff5671b3ddd11 to your computer and use it in GitHub Desktop.
A generic Static Web Server load testing comparison between 2.15.0 and 2.14.2 versions.

Static Web Server 2.15.0 vs 2.14.2

A generic Static Web Server load testing comparison between 2.15.0 and 2.14.2 versions.

$ static-web-server -d ./public

2.14.2

$ wrk -c100 -t4 -d1m --latency http://localhost
Running 1m test @ http://localhost
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.36ms    0.95ms  24.79ms   72.22%
    Req/Sec    10.65k   604.63    16.21k    85.38%
  Latency Distribution
     50%    2.32ms
     75%    2.90ms
     90%    3.52ms
     99%    4.92ms
  2543430 requests in 1.00m, 1.75GB read
Requests/sec:  42362.27

2.15.0

$ wrk -c100 -t4 -d1m --latency http://localhost
Running 1m test @ http://localhost
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.26ms    0.90ms  39.12ms   72.48%
    Req/Sec    11.13k   559.83    15.32k    86.58%
  Latency Distribution
     50%    2.22ms
     75%    2.78ms
     90%    3.36ms
     99%    4.64ms
  2657527 requests in 1.00m, 1.83GB read
Requests/sec:  44258.34
Transfer/sec:     31.23MB

Results

  • ~4.37% more requests/sec for almost the same computing (2.15.0).
  • RAM used was 2,692K (2.15.0) and 2,400K (2.14.2)

System used

  • OS: Arch Linux x86_64
  • Kernel: 6.1.11-arch1-1 (64 bits)
  • Processor: 4 × Intel® Core™ i7-6500U
  • RAM: 8 GiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment