rust-web-frameworks-benchmark icon indicating copy to clipboard operation
rust-web-frameworks-benchmark copied to clipboard

Benchmark framework by let them doing the same work.

Open fakeshadow opened this issue 4 years ago • 1 comments

There are some obvious problem with the bench.

  1. 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.

  2. 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.

  3. 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 avatar Aug 06 '21 19:08 fakeshadow

@fakeshadow, can you please send PR?

rousan avatar Aug 08 '21 09:08 rousan