Commit 2aad051
fix: correct SetItemsProcessed in BM_GetTlState benchmark
SetItemsProcessed was called inside the benchmark loop with a per-iteration
count. google benchmark expects the cumulative total after the loop ends.
Move the call after the loop and compute it from state.iterations().
Also remove the now-unused total_ops atomic and per-thread ops counter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bb7fa90 commit 2aad051
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
| |||
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
354 | | - | |
355 | 353 | | |
356 | 354 | | |
357 | 355 | | |
358 | | - | |
359 | 356 | | |
360 | | - | |
361 | 357 | | |
362 | 358 | | |
363 | 359 | | |
| |||
367 | 363 | | |
368 | 364 | | |
369 | 365 | | |
370 | | - | |
371 | 366 | | |
372 | 367 | | |
373 | 368 | | |
374 | 369 | | |
375 | 370 | | |
376 | 371 | | |
377 | | - | |
378 | 372 | | |
| 373 | + | |
379 | 374 | | |
380 | 375 | | |
381 | 376 | | |
| |||
0 commit comments