diff options
Diffstat (limited to 'weed/mq/offset/benchmark_test.go')
| -rw-r--r-- | weed/mq/offset/benchmark_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/mq/offset/benchmark_test.go b/weed/mq/offset/benchmark_test.go index d6f33206f..d82729142 100644 --- a/weed/mq/offset/benchmark_test.go +++ b/weed/mq/offset/benchmark_test.go @@ -445,10 +445,10 @@ func BenchmarkMemoryUsage(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { manager.AssignOffset() - if i%1000 == 0 { - // Periodic checkpoint to simulate real usage - manager.checkpoint(int64(i)) - } + // Note: Checkpointing now happens automatically in background every 2 seconds } + + // Clean up background goroutine + manager.Close() }) } |
