rubyx/test/bench/go/calls.go
Torsten 8eb0ba0d81 fix benchmarks
up to 20 recursive fibo
had mixed add and calls for rubyx
2019-07-30 21:16:24 +03:00

18 lines
188 B
Go

package main
func fib(n uint) uint {
if n < 2 {
return n
} else {
return fib(n-1) + fib(n-2)
}
}
func main() {
sum := 1
for sum < 1000 {
sum += 1
fib( 20 )
}
}