pixie/tests/benchmark_jpg.nim
2020-11-29 15:46:56 -06:00

7 lines
197 B
Nim

import pixie/fileformats/jpg, fidget/opengl/perf
let data = readFile("tests/images/jpg/jpeg420exif.jpg")
timeIt "pixie decode":
for i in 0 ..< 20:
discard decodeJpg(cast[seq[uint8]](data))