benchmark image minifyBy2
This commit is contained in:
parent
9782855a8d
commit
86df7fe154
|
@ -13,6 +13,13 @@ timeIt "fill_rgba":
|
||||||
timeIt "subImage":
|
timeIt "subImage":
|
||||||
keep a.subImage(0, 0, 256, 256)
|
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":
|
timeIt "invert":
|
||||||
a.invert()
|
a.invert()
|
||||||
keep(a)
|
keep(a)
|
||||||
|
|
Loading…
Reference in a new issue