Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
joshitech.blogspot.com
Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
1–10 of 11 posts
Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#2Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#3You should try to implement the Fib with tail call and then test it. http://en.wikipedia.org/wiki/Tail_call
Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#4Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#5I wonder if the author validated the results returned by Java for Fibonacci 50. Performance can increase significantly when correctness is not an issue. :)
Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#6You should try to implement the Fib with tail call and then test it. http://en.wikipedia.org/wiki/Tail_call
First he should implement it properly, remembering last two values at any time. His way is just plain outrageous.
Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#7Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#8Does anyone know why Java would be faster here? Is there any kind of optimization happening under the hood? (Automatic memoization?)
Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#9Earlier quoted context omitted.
First he should implement it properly, remembering last two values at any time. His way is just plain outrageous.
Here the comparison is not about the algorithm, but language with similar recursion logic.
Re: Fibonacci(50) Performance: Java C C++ D Go Terra (Lua) Lua-JIT (Lua)
#10https://web.archive.org/web/20080729072224/http://shootout.a...