4 ms·
The example was indeed not playing to its strengths, it wasn't making use of tail call optimization. I made a PR to fix that: https://github.com/drujensen/fib/
by obahareth 8y ago
The example was indeed not playing to its strengths, it wasn't making use of tail call optimization.
I made a PR to fix that:
https://github.com/drujensen/fib/pull/33 https://github.com/drujensen/fib/pull/33
- thedufer 8y agoThat's obviously a better choice if you actually want Fibonacci numbers, but it defeats the point of a benchmark if you implement a completely different algorithm in one of the languages.