/actix-web-issue

Primary LanguageRustApache License 2.0Apache-2.0

Actix Web 3.0 throughput issue

Using Bombadier benchmarking tool

Without extracting path information

Constant throughput

Bombarding http://localhost:8080 with 1000000 request(s) using 100 connection(s)
 1000000 / 1000000 [=====================================================] 100.00% 332615/s 3s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec    334524.34   18349.45  363484.20
  Latency      296.89us   199.88us    13.68ms
  HTTP codes:
    1xx - 0, 2xx - 1000000, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    63.78MB/s

With extracting path information

Continuously falling throughput. Throughput only recovers after the application is restarted

Bombarding http://localhost:8080/100 with 1000000 request(s) using 100 connection(s)
 1000000 / 1000000 [=====================================================] 100.00% 62409/s 16s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec     62608.75   38180.35  276037.85
  Latency        1.59ms   331.35us    16.44ms
  HTTP codes:
    1xx - 0, 2xx - 1000000, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    11.95MB/s

Environment

  • CPU Ryzen 5 2600
  • RAM 16GB DDR4-3200
  • OS Fedora 32 Workstation (5.7.8-200.fc32.x86_64)
  • Rust rustc 1.44.1 (c7087fe00 2020-06-17)