3 ms·
In our benchmarks our raw TCP performance has generally been best-of-breed. I suspect the issue is rust-http, which is not an official package.
by pcwalton 12y ago
In our benchmarks our raw TCP performance has generally been best-of-breed. I suspect the issue is rust-http, which is not an official package.
- cmrx64 12y agoI suspect the issue is Iron, though rust-http certainly isn't helping much. Here are some graphs, generated from data made by rust-http's benchmarking script (https://github.com/chris-morgan/rust-http/tree/master/comparisons https://github.com/chris-morgan/rust-http/tree/master/compar...), on my box. A spreadsheet: https://docs.google.com/spreadsheets/d/1-5_4wPPKNBYZ6yuw-rRlg72bfLCpf6NOlAUy9jDDe5A/edit?usp=sharing https://docs.google.com/spreadsheets/d/1-5_4wPPKNBYZ6yuw-rRl... The raw data: https://gist.github.com/cmr/3648bcc6365c1dba83f1 https://gist.github.com/cmr/3648bcc6365c1dba83f1 The charts themselves: http://imgur.com/gw1mp40,Hn3929i,h2OQiTh http://imgur.com/gw1mp40,Hn3929i,h2OQiTh Software versions: rustc 0.11.0-pre (44ec28cfac9fa3f738e0e77ccca1d804125fd1dd 2014-07-01 21:26:33 +0000) go version go1.3 linux/amd64 node v0.10.29 Apache 2.4.9 wrk 3.1.0 Arch Linux, x86_64, CPU: https://gist.github.com/cmr/7cc6df806caff2253667 https://gist.github.com/cmr/7cc6df806caff2253667
- jonreem 12y agoIt's worth mentioning that I ran this under -c 100 or 200, not 1-8, which may change things significantly.
- jonreem 12y agoI just re-ran benchmarks using wrk instead of ab and I'm getting 16k req/s instead of 2k. Very strange.
- glandium 12y agoDid you try changing the runtime to libgreen? It uses a thread pool and dispatches jobs to them instead of spawning a new thread for each job.