-
Notifications
You must be signed in to change notification settings - Fork 42
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
Is the Go result correct? #2
Comments
Did you use 500 million or 1 million? His test results used 500 million. |
You are correct. I didn't pay close enough attention to the second run-all (500000000). Running it again (compared to the C baseline) I get.
I have no idea how LuaJit could be faster than C. I assume the compiler is doing something fishy. Here is my baseline C version
|
It's not doing anything fishy, it's leveraging JITing to skip the PLT indirection. You could get similar performances in C by using dlsym to get a direct handle to the function or compiling with |
The results from your test showed go was really slow. For simplicity I combined everything into it's own file. I'm getting a result of
110 ms
(vs37879
). I may be misunderstanding something.Core i5 Mac
The text was updated successfully, but these errors were encountered: