diff options
Diffstat (limited to 'internal/rosa/rosa_test.go')
| -rw-r--r-- | internal/rosa/rosa_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index b64ebbd7..ceb7e79c 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -93,11 +93,14 @@ func TestCureAll(t *testing.T) { } func BenchmarkStage3(b *testing.B) { + flags := rosa.Flags() + b.Cleanup(func() { rosa.DropCaches(flags) }) + for b.Loop() { rosa.Std.Load(rosa.LLVM) b.StopTimer() - rosa.DropCaches() + rosa.DropCaches(0) b.StartTimer() } } |
