jonhoo / volley

Volley is a benchmarking tool for measuring the performance of server networking stacks.
MIT License
123 stars 12 forks source link

Rust server is run in debug mode #9

Closed Blei closed 9 years ago

Blei commented 9 years ago

Removing -g and adding "-C opt-level=3" (or 2, 3 is sometimes worse than 2) might speed things up a bit.

Blei commented 9 years ago

Also: you don't have to flush as TcpStream is not buffered. IMO this method should be inlined and so would be optimized to a noop, but currently doesn't seem to be (https://github.com/rust-lang/rust/blob/cf0edd0ad941a4a569e8afb17494cb1eb53373e9/src/libstd/net/tcp.rs#L196)