-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Crystal can't measure time below 1100 nanoseconds #7687
Comments
Crystal |
What's your OS? And what does running |
I ran it on a WSL, every time compiled with |
Might be something to do with WSL then. On |
This is probably #7377 and already fixed. Please try with 0.28.0 |
Yep, it is fixed, thank you :) |
Hey, I've done a little experiment with a friend where we tried to iterate the biggest number possible and check the time it takes, we go to
UInt128
, it went like:The run took 1100 nanoseconds, I was pretty impressed, I thought it was pretty good, but then a friend ran in on Rust and it took 89 nanoseconds, I thought it's impossible and tried to run the crystal binary again (compiled using --release), I've got 1100 again.. and again, and again.
until eventually, I went down to UInt32 in order to be even "faster" and I still got the same result, 1100 nanoseconds, this must be an issue with Crystal, I tried the
Time.measure
method too and it gave me 1100 at the minimum too!Runs:
UInt128:
UInt32:
The text was updated successfully, but these errors were encountered: