News for hackers. Stuff that matters.
Re:Capnproto-rust vs. C++ by zik on Monday November 18, 2013 @07:31PM (#6758357)
It'd be nice to see some description of which compiler, version and flags are used in each case.
Re:Capnproto-rust vs. C++ by renshaw on Monday November 18, 2013 @07:46PM (#6758437)
Author here. The makefiles I'm using are on github:

https://github.com/dwrensha/capnproto-rust/blob/master/Makef...

https://github.com/dwrensha/capnproto/blob/benchmark/c%2B%2B...

I compiled libcapnp with the latest Clang g++ that ships with XCode. It perhaps would be more fair to also compile the C++ benchmarks with Clang, instead of the Macports gcc4.8 that I'm using, but unfortunately Clang barfs on some template hackery in the benchmark driver.

Re:Capnproto-rust vs. C++ by Game_Ender on Monday November 18, 2013 @09:03PM (#6758762)
That would be quite useful. Otherwise it's very hard to tease apart the differences between optimization back ends of GCC and LLVM vs the Rust and C++ front ends. I feel like I have seen benchmarks showing differences around 5-20% between LLVM and GCC in speed, so the it will have an effect.
Re:Capnproto-rust vs. C++ by renshaw on Thursday November 21, 2013 @08:29AM (#6774549)
Update: the compilation error was actually due to some missing includes. https://github.com/kentonv/capnproto/pull/47

Switching compilers on the C++ side doesn't seem to make a significant difference in performance.

Re:Capnproto-rust vs. C++ by dbaupp on Monday November 18, 2013 @08:10PM (#6758542)
You may go a little faster with `--opt-level=3` and no `-Z debug-info` for the Rust.