pixie/tests/benchmark_jpg.nim

7 lines
162 B
Nim
Raw Normal View History

2020-12-04 06:44:44 +00:00
import pixie/fileformats/jpg, benchy
2020-11-28 23:59:46 +00:00
let data = readFile("tests/images/jpg/jpeg420exif.jpg")
timeIt "pixie decode":
2020-12-04 06:44:44 +00:00
discard decodeJpg(cast[seq[uint8]](data))