pixie/tests/benchmark_jpeg.nim

7 lines
194 B
Nim
Raw Normal View History

2022-05-17 03:46:43 +00:00
import benchy, jpegsuite, pixie/fileformats/jpeg, strformat
2020-11-28 23:59:46 +00:00
for file in jpegSuiteFiles:
2022-05-05 16:55:25 +00:00
let data = readFile(file)
2022-05-13 04:19:15 +00:00
timeIt &"jpeg {(data.len div 1024)}k decode":
2022-05-17 03:46:43 +00:00
discard decodeJpeg(data)