mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 09:20:29 -07:00
feat(#15): add benchmark tests
This commit is contained in:
parent
34dda8c57c
commit
8dc2dbf44f
1 changed files with 8 additions and 0 deletions
|
|
@ -157,3 +157,11 @@ func BenchmarkResizePng(b *testing.B) {
|
||||||
}
|
}
|
||||||
benchmarkResize("test.png", options, b)
|
benchmarkResize("test.png", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func BenchmarkResizeWebP(b *testing.B) {
|
||||||
|
options := Options{
|
||||||
|
Width: 200,
|
||||||
|
Height: 200,
|
||||||
|
}
|
||||||
|
benchmarkResize("test.webp", options, b)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue