TODO: iter call 太多系统内存. 导致效率低下

This commit is contained in:
huangsimin
2019-04-02 18:28:41 +08:00
parent d93208f769
commit f0f16d7516
10 changed files with 169 additions and 136 deletions

View File

@@ -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)