genprof
This commit is contained in:
parent
a49ce499e2
commit
7c1911bbda
2
genprof
Executable file
2
genprof
Executable file
@ -0,0 +1,2 @@
|
||||
go test -cpuprofile=profile.out -bench=BenchmarkSinglePixel &&
|
||||
go tool pprof -text profile.out
|
@ -36,7 +36,8 @@ func BenchmarkScale(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
err := png.Encode(io.Discard,
|
||||
Scale(Render(
|
||||
texture.New(color.White, color.Black, 2),
|
||||
texture.New(color.White,
|
||||
color.Black, 2),
|
||||
image.Rect(0, 0, 64, 64),
|
||||
), 64),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user