-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize poor benchmark result #2501
Comments
Thanks @marijnh for pointing it out |
Here's what perf says with an optimized runtime and corelib:
|
It looks like there's a lot to be gained just in optimizing uint::to_str. It is very inefficient. |
Often in such benchmarks the random number generator is the bottleneck. |
I recently added the xorshift random number generator. It's not on by default, but it should be significantly faster than the default ISAAC generator. |
The biggest win is going to be to write a |
6e00852 makes |
That commit makes the time for |
Graydon made another commit to improve it further. I believe we are competitive with the other languages now. |
Somewhat related is #2105 |
http://blog.cdleary.com/2012/06/simple-selfish-and-unscientific-shootout/
We had a particularly poor showing in this comparison.
The text was updated successfully, but these errors were encountered: