From 86df7fe154d13f8e3349667a895d75e4896b4358 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sun, 7 Feb 2021 20:41:12 -0600 Subject: [PATCH] benchmark image minifyBy2 --- tests/benchmark_images.nim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/benchmark_images.nim b/tests/benchmark_images.nim index 9f5c118..7864ca7 100644 --- a/tests/benchmark_images.nim +++ b/tests/benchmark_images.nim @@ -13,6 +13,13 @@ timeIt "fill_rgba": timeIt "subImage": keep a.subImage(0, 0, 256, 256) +# timeIt "superImage": +# discard + +timeIt "minifyBy2": + let minified = a.minifyBy2() + doAssert minified[0, 0] == rgba(63, 127, 191, 191) + timeIt "invert": a.invert() keep(a)