From 8dc2dbf44ff64eef3788f9322ffd054cc83745ed Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Tue, 7 Apr 2015 11:27:18 +0200 Subject: [PATCH] feat(#15): add benchmark tests --- resize_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resize_test.go b/resize_test.go index 79749e4..3874cd8 100644 --- a/resize_test.go +++ b/resize_test.go @@ -157,3 +157,11 @@ func BenchmarkResizePng(b *testing.B) { } benchmarkResize("test.png", options, b) } + +func BenchmarkResizeWebP(b *testing.B) { + options := Options{ + Width: 200, + Height: 200, + } + benchmarkResize("test.webp", options, b) +}