Skip to content

Instantly share code, notes, and snippets.

@oehme
Last active December 15, 2015 14:48
Show Gist options
  • Save oehme/5276707 to your computer and use it in GitHub Desktop.
Save oehme/5276707 to your computer and use it in GitHub Desktop.
@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