From ef8944f2a60bb15fbd926bda689a12f8b7094a79 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 19 Sep 2024 22:08:37 -0400 Subject: [PATCH] Measure tokens in the benchmarks --- flow_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/flow_test.go b/flow_test.go index 3cfbd0a..c2779b1 100644 --- a/flow_test.go +++ b/flow_test.go @@ -26,6 +26,7 @@ func BenchmarkFlowLipsumWrapJustifyTop (benchmark *testing.B) { func benchmarkFlow (benchmark *testing.B, wrap bool, xAlign, yAlign Align) { _, tokens := parseString(lipsumLt) + measure(tokens, basicfont.Face7x13) benchmark.ReportAllocs() benchmark.ResetTimer() for i := 0; i < benchmark.N; i ++ {