rust-web-frameworks-benchmark
rust-web-frameworks-benchmark copied to clipboard
Benchmark framework by let them doing the same work.
There are some obvious problem with the bench.
-
actix-web and warp return a String while others return a &'static str. This means they have additional allocation for generating payload while others don't.
-
hyper being low level does not set content-type header. And I believe all other tests do set it to "plain/text" or "text/plain; charset=utf-8". So it should set one to be on par.
-
warp by the test method mentioned in README.md does not generate meaningful response because it can not find the route you defined. This makes it return a 404 response that has no payload so it bypass the response body entirely. This is mentioned in issue https://github.com/rousan/rust-web-frameworks-benchmark/issues/2.
@fakeshadow, can you please send PR?