aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/azalea/azalea_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/azalea/azalea_test.go')
-rw-r--r--internal/rosa/azalea/azalea_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/rosa/azalea/azalea_test.go b/internal/rosa/azalea/azalea_test.go
index f2dec252..73330412 100644
--- a/internal/rosa/azalea/azalea_test.go
+++ b/internal/rosa/azalea/azalea_test.go
@@ -154,3 +154,16 @@ func TestParse(t *testing.T) {
})
}
}
+
+func BenchmarkParse(b *testing.B) {
+ r := strings.NewReader(sample)
+ for b.Loop() {
+ if _, err := Parse(r); err != nil {
+ b.Fatal(err)
+ }
+
+ b.StopTimer()
+ r.Reset(sample)
+ b.StartTimer()
+ }
+}