DO; Ubuntu 17.04 (Binary/Buffered):
C++ -> C++: 0.001095s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%) Rust -> Rust: took PT0.000991742S seconds to make 20 calculate calls C++ -> Rust: 0.000985s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%) Rust -> C++: took PT0.001090593S seconds to make 20 calculate calls
@coder543 I think I figured out why you’re seeing timings that are so far off. The Rust client/server binds to
localhost, so it’s using IPV4. I changed it to bind to
localhost to match the C++ client, and to use binary/buffered, and I get the timings above.