tomaka / rouille

Web framework in Rust
Apache License 2.0
1.09k stars 105 forks source link

Add option to run server with a threadpool #169

Closed jaemk closed 6 years ago

jaemk commented 6 years ago

issue #167

jaemk commented 6 years ago

Some test results (numbers are req/s) to confirm the default mode isn't affected:


cargo run --release --example hello-world
wrk -t4 -c100 -d10s http://localhost:8000
current new - thread new - threadpool
25500 25200 102200

cargo run --release --example database
# insert some data
curl -X POST -d 'some data' -H 'Content-Type: text/plain' http://locahost:8000/note
wrk -t4 -c100 -d10s http://localhost:8000/notes
current new - thread new - threadpool
6850 6820 8100
tomaka commented 6 years ago

The code looks good. Please also add an entry to CHANGELOG.md.

jaemk commented 6 years ago

Changelog is updated!