From 445d95023b1d9d152417838c4edad54f7bf4efe3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 1 May 2026 03:42:14 +0900 Subject: internal/rosa: global preset flags These changes preset behaviour globally. Useful for ad hoc workarounds for development or bootstrapping on resource-constrained systems. Signed-off-by: Ophestra --- internal/rosa/all_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/rosa/all_test.go') 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() } } -- cgit v1.3.1