From 3d54d1f1767398e8cd17db34047203e090d2a9a9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 3 Apr 2026 20:50:09 +0900 Subject: internal/rosa: drop caches This enables accurate benchmarking of the toolchain abstraction. Signed-off-by: Ophestra --- internal/rosa/rosa_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/rosa/rosa_test.go') diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index 18d7b99b..ba51b248 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -91,3 +91,13 @@ func TestCureAll(t *testing.T) { }) } } + +func BenchmarkStage3(b *testing.B) { + for b.Loop() { + rosa.Std.Load(rosa.LLVMClang) + + b.StopTimer() + rosa.DropCaches() + b.StartTimer() + } +} -- cgit v1.3.1