You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func benchmarkPut(b *testing.B, tree *Tree[int, struct{}], size int) {
for i := 0; i < b.N; i++ {
for n := 0; n < size; n++ {
// Put will replace same keys,
// so it's equivalent to Get after inserting first size n.(without rebalancing)
//tree.Put(n, struct{}{})
// replace it to
tree.Put(rand.Int(), struct{}{})
}
}
}
Should i open a pr?
The text was updated successfully, but these errors were encountered:
Hello,
I found that some benchmark codes of redblacktree are useless.
and benchmarkPut may be biased.
Should i open a pr?
The text was updated successfully, but these errors were encountered: