forked from joejulian/gio
a1166e6652
Signed-off-by: Elias Naur <mail@eliasnaur.com>
21 lines
315 B
Go
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)
|
|
}
|
|
}
|