Benchmark results

Sleep:

wrk -t 16 -d 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   332.22us   1.00s    68.75%
    Req/Sec     0.50      0.50     1.00    100.00%
  64 requests in 5.01s, 8.50KB read
Requests/sec:     12.78
Transfer/sec:      1.70KB

Sleep:

wrk -t 16 -d 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   519.72us   1.00s    68.75%
    Req/Sec     2.34      2.92    10.00     87.67%
  128 requests in 5.01s, 17.00KB read
Requests/sec:     25.57
Transfer/sec:      3.40KB

Sleep:

wrk -t 16 -d 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     1.64ms   1.01s    72.27%
    Req/Sec     3.52      3.38    30.00     96.92%
  256 requests in 5.01s, 34.00KB read
Requests/sec:     51.13
Transfer/sec:      6.79KB

Sleep:

wrk -t 16 -d 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     0.96ms   1.01s    70.70%
    Req/Sec    10.38     15.10    70.00     94.12%
  512 requests in 5.01s, 68.00KB read
Requests/sec:    102.17
Transfer/sec:     13.57KB

Spin:

wrk -t 16 -d 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     1.00s     0.00us   1.00s   100.00%
    Req/Sec     0.20      0.45     1.00     80.00%
  5 requests in 5.10s, 760.00B read
  Socket errors: connect 0, read 0, write 0, timeout 4
Requests/sec:      0.98
Transfer/sec:     149.02B
Description
Test warp behavior for future based sleeping and CPU intensive webhandlers.
Readme 212 KiB
Languages
Rust 73.8%
Shell 26.2%