-
Notifications
You must be signed in to change notification settings - Fork 40
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
How is the performance compared to the C version? #110
Comments
We do have a number of benchmarks (run with Do you have concrete benchmarks you'd like to see comparisons of? In general, I'd expect the Rust version to be very close in performance to the C version. |
Very generically though, on my laptop, recording a random value on average takes about 5.6ns. |
Concur w/ all of the above. I would expect it to be comparable, and if you find instances where it is not, that would be great to know. The hot paths inherit all the optimization that went into the Java version, so they boil down to patterns like loading a very-likely-cache-resident field, mask, shift, write. There's not a whole lot left to wring out of that sort of logic without SIMD, which isn't applicable here since we get one datum at a time, so we just hope that the LLVM gods smile upon us. |
We are probably missing some optimizations that have landed since the port for less-hot paths like #109, but that's the only one I know about. |
How is Rust version performance compared to the C version?
The text was updated successfully, but these errors were encountered: