test img, benchmark mask minifyby2
This commit is contained in:
parent
bbe207baa0
commit
72a4c3efb3
2 changed files with 14 additions and 0 deletions
14
tests/benchmark_masks.nim
Normal file
14
tests/benchmark_masks.nim
Normal file
|
@ -0,0 +1,14 @@
|
|||
import chroma, pixie, benchy
|
||||
|
||||
let mask = newMask(2560, 1440)
|
||||
|
||||
proc reset() =
|
||||
mask.fill(63)
|
||||
|
||||
reset()
|
||||
|
||||
timeIt "minifyBy2":
|
||||
let minified = mask.minifyBy2()
|
||||
doAssert minified[0, 0] == 63
|
||||
|
||||
reset()
|
BIN
tests/images/circleMask.png
Normal file
BIN
tests/images/circleMask.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in a new issue