rubyx/test/bench/go/calls.go
Torsten 6b1c316f04 add simple loop bench
fiddled with run numbers a bit
recording times with noop removed
results slightly worse than hoped
2019-07-31 21:18:03 +03:00

18 lines
187 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 < 100 {
sum += 1
fib( 20 )
}
}