Last active
December 15, 2015 14:48
-
-
Save oehme/5276707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Benchmark | |
class FibonacciBenchmarkXtend24 { | |
List<Integer> nValues = #[5, 10, 20] | |
def timeDumbFibonacci() { | |
for (i : 1 .. iterations) { | |
new Fibonaccis().dumbFibonacci(n) | |
} | |
} | |
def loopMemoizedFibonacci() { | |
new Fibonaccis().memoizedFibonacci(n) | |
} | |
def loopIterativeFibonacci() { | |
new Fibonaccis().iterativeFibonacci(n) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment