Skip to main content

example/fib/fib_test.go

1package fib
3import (
4 "testing"
5)
7func BenchmarkFib(b *testing.B) {
8 for b.Loop() {
9 // On a branch, change this to FibIterative to see the improvement.
10 _ = FibRecursive(20)
11 }