add simple loop bench
fiddled with run numbers a bit recording times with noop removed results slightly worse than hoped
This commit is contained in:
@ -18,8 +18,10 @@ func fibo(n int ) int {
|
||||
|
||||
func main() {
|
||||
sum := 1
|
||||
for sum < 100000 {
|
||||
res := 0
|
||||
for sum < 50000 {
|
||||
sum += 1
|
||||
fibo( 20 )
|
||||
res = fibo( 40 )
|
||||
}
|
||||
res += 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user