mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 17:07:18 +08:00
Merge e4df08796d into c13d0b4807
This commit is contained in:
commit
925ae1a802
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ func BenchmarkSum2(b *testing.B) {
|
|||
var local int64
|
||||
for i := 0; i < b.N; i++ {
|
||||
b.StopTimer()
|
||||
s := make([]int64, n)
|
||||
s := make([]int64, n*2)
|
||||
b.StartTimer()
|
||||
local = sum2(s)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue