Files
gio-patched/example/gophers/main_test.go
T
Elias Naur a1166e6652 example,cmd: bump gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2020-05-03 21:07:53 +02:00

21 lines
315 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
package main
import (
"image"
"testing"
"gioui.org/layout"
)
func BenchmarkUI(b *testing.B) {
fetch := func(_ string) {}
u := newUI(fetch)
gtx := new(layout.Context)
for i := 0; i < b.N; i++ {
gtx.Reset(nil, nil, image.Point{800, 600})
u.Layout(gtx)
}
}