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
// BenchmarkSetBulk creates a large HAMT, then resets the timer, and does another 1000 inserts,
194
+
// BenchmarkSet creates a large HAMT, then starts the timer, and does another 1000 inserts,
152
195
// measuring the time taken for this second batch of inserts.
153
-
// Flushing happens once after all 1000 inserts.
154
-
//
155
-
// The number of *additional* blocks per entry is reported.
156
-
// This number is usually less than one, because the bulk flush means changes might be amortized.
157
-
// func BenchmarkSetBulk(b *testing.B) {
158
-
// doBenchmarkSetSuite(b, false)
159
-
// }
160
-
161
-
// BenchmarkSetIndividual is the same as BenchmarkSetBulk, but flushes more.
162
-
// Flush happens per insert.
196
+
// Flushing rate is parameterized.
163
197
//
164
198
// The number of *additional* blocks per entry is reported.
165
-
// Since we flush each insert individually, this number should be at least 1 --
199
+
// This number is usually less than one with high flush interval means changes might be amortized.
200
+
// For flush interval one this number should be at least 1 --
166
201
// however, since we choose random keys, it can still turn out lower if keys happen to collide.
167
202
// (The Set method does not make it possible to adjust our denominator to compensate for this: it does not yield previous values nor indicators of prior presense.)
0 commit comments