TODO: iter call 太多系统内存. 导致效率低下
This commit is contained in:
@@ -438,7 +438,7 @@ func BenchmarkPut(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
b.StartTimer()
|
||||
|
||||
execCount := 50
|
||||
execCount := 5
|
||||
b.N = len(l) * execCount
|
||||
for i := 0; i < execCount; i++ {
|
||||
tree := New(compare.Int)
|
||||
|
||||
Reference in New Issue
Block a user