pixie/tests/benchmark_jpeg.nim
Ryan Oldenburg 7cba9e5ca3 f
2022-05-21 00:33:20 -05:00

7 lines
194 B
Nim

import benchy, jpegsuite, pixie/fileformats/jpeg, strformat
for file in jpegSuiteFiles:
let data = readFile(file)
timeIt &"jpeg {(data.len div 1024)}k decode":
discard decodeJpeg(data)