TeXitoi / benchmarksgame-rs

The Computer Language Benchmarks Game: Rust implementations
Other
70 stars 19 forks source link

macroless n_body #71

Closed llogiq closed 6 years ago

llogiq commented 6 years ago

As requested by Isaac. I now have my own account there so I can submit it.

TeXitoi commented 6 years ago

Thanks.

llogiq commented 6 years ago

You're welcome. It'll be interesting to see how it performs on Isaacs machine.

mbrubeck commented 6 years ago

Unfortunately this performed worse than the old version on the benchmarksgame server. :(

× source secs mem gz cpu cpu load
1.6 Rust #2 13.13 1,740 1805 13.12 1% 100% 0% 1%
2.6 Rust #6 20.93 1,820 1790 20.93 100% 0% 1% 0%
llogiq commented 6 years ago

Yeah, I forgot that Isaac uses this ancient pre-AVX Core 2, which cannot do 256 bit float arithmetic :frown:.

On the other hand, I have an idea on how to improve perf even without that. Stay tuned.