CPU Info

  • Logical CPUs 8
  • Physical CPUs 4

Benchmark results

Spin w/ spin_spawn_blocking:

wrk -t 16 -d 5 --timeout 5 -c 16 http://localhost:3030/spin_spawn_blocking/1

Running 5s test @ http://localhost:3030/spin_spawn_blocking/1
  16 threads and 16 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.01s     6.67ms   1.03s    86.57%
    Req/Sec     0.16      0.37     1.00     83.58%
  67 requests in 5.09s, 9.95KB read
Requests/sec:     13.15
Transfer/sec:      1.95KB

Spin w/ spin_spawn_blocking:

wrk -t 16 -d 5 --timeout 5 -c 32 http://localhost:3030/spin_spawn_blocking/1

Running 5s test @ http://localhost:3030/spin_spawn_blocking/1
  16 threads and 32 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.01s    10.23ms   1.05s    79.10%
    Req/Sec     1.77      2.50    10.00     91.89%
  134 requests in 5.08s, 19.79KB read
Requests/sec:     26.37
Transfer/sec:      3.89KB

Spin w/ spin_spawn_blocking:

wrk -t 16 -d 5 --timeout 5 -c 64 http://localhost:3030/spin_spawn_blocking/1

Running 5s test @ http://localhost:3030/spin_spawn_blocking/1
  16 threads and 64 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.02s    18.05ms   1.09s    69.92%
    Req/Sec     6.47      7.76    30.00     88.24%
  256 requests in 5.10s, 37.75KB read
Requests/sec:     50.23
Transfer/sec:      7.41KB

Spin w/ spin_spawn_blocking:

wrk -t 16 -d 5 --timeout 5 -c 128 http://localhost:3030/spin_spawn_blocking/1

Running 5s test @ http://localhost:3030/spin_spawn_blocking/1
  16 threads and 128 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.06s    45.69ms   1.26s    73.05%
    Req/Sec    17.77     16.77    70.00     83.52%
  512 requests in 5.09s, 75.50KB read
Requests/sec:    100.57
Transfer/sec:     14.83KB

Sleep:

wrk -t 16 -d 5 --timeout 5 -c 16 http://localhost:3030/sleep/1

Running 5s test @ http://localhost:3030/sleep/1
  16 threads and 16 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.00s   620.32us   1.00s    61.76%
    Req/Sec     0.41      0.50     1.00     58.82%
  68 requests in 5.08s, 9.03KB read
Requests/sec:     13.38
Transfer/sec:      1.78KB

Sleep:

wrk -t 16 -d 5 --timeout 5 -c 32 http://localhost:3030/sleep/1

Running 5s test @ http://localhost:3030/sleep/1
  16 threads and 32 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.00s   387.66us   1.00s    60.16%
    Req/Sec     1.58      1.58    10.00     96.97%
  128 requests in 5.01s, 17.00KB read
Requests/sec:     25.57
Transfer/sec:      3.40KB

Sleep:

wrk -t 16 -d 5 --timeout 5 -c 64 http://localhost:3030/sleep/1

Running 5s test @ http://localhost:3030/sleep/1
  16 threads and 64 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.00s   723.94us   1.00s    77.65%
    Req/Sec     4.35      5.56    30.00     95.65%
  264 requests in 5.01s, 35.06KB read
Requests/sec:     52.65
Transfer/sec:      6.99KB

Sleep:

wrk -t 16 -d 5 --timeout 5 -c 128 http://localhost:3030/sleep/1

Running 5s test @ http://localhost:3030/sleep/1
  16 threads and 128 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.00s     2.19ms   1.01s    83.59%
    Req/Sec    10.49     15.08    70.00     94.12%
  512 requests in 5.01s, 68.00KB read
Requests/sec:    102.22
Transfer/sec:     13.58KB

Spin:

wrk -t 16 -d 5 --timeout 5 -c 16 http://localhost:3030/spin/1

Running 5s test @ http://localhost:3030/spin/1
  16 threads and 16 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.53s     1.61s    5.00s    84.21%
    Req/Sec     0.15      0.37     1.00     85.00%
  20 requests in 5.02s, 2.97KB read
  Socket errors: connect 0, read 0, write 0, timeout 1
Requests/sec:      3.98
Transfer/sec:     605.59B
Description
Test warp behavior for future based sleeping and CPU intensive webhandlers.
Readme 212 KiB
Languages
Rust 73.8%
Shell 26.2%