Measure tokens in the benchmarks

This commit is contained in:
Sasha Koshka 2024-09-19 22:08:37 -04:00
parent 4c42b12cc1
commit ef8944f2a6

View File

@ -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 ++ {