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/rosa_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/rosa/rosa_test.go') 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() } } -- cgit v1.3.1