Measure tokens in the benchmarks
This commit is contained in:
parent
4c42b12cc1
commit
ef8944f2a6
@ -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 ++ {
|
||||
|
Loading…
Reference in New Issue
Block a user