rubyx/test/bench/go/calls.go
Torsten 00bf38a0e6 updating benchmarks
on the new machine, consistent
not rubyx yet
2019-07-23 20:14:28 +03:00

18 lines
190 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 < 100000 {
sum += 1
fib( 10 )
}
}