diff options
Diffstat (limited to 'internal/rosa/all_test.go')
| -rw-r--r-- | internal/rosa/all_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/rosa/all_test.go b/internal/rosa/all_test.go index f97ebbdf..52eabf39 100644 --- a/internal/rosa/all_test.go +++ b/internal/rosa/all_test.go @@ -20,13 +20,16 @@ func TestLoad(t *testing.T) { } func BenchmarkAll(b *testing.B) { + flags := rosa.Flags() + b.Cleanup(func() { rosa.DropCaches(flags) }) + for b.Loop() { for i := range rosa.PresetEnd { rosa.Std.Load(rosa.PArtifact(i)) } b.StopTimer() - rosa.DropCaches() + rosa.DropCaches(0) b.StartTimer() } } |
