fix bench jpeg

This commit is contained in:
treeform 2022-07-10 00:02:27 -07:00
parent 4b3e205445
commit 3abdfb8495

View file

@ -3,7 +3,7 @@ import benchy, pixie/fileformats/jpeg, jpegsuite, os, stb_image/read as stbi
for file in jpegSuiteFiles: for file in jpegSuiteFiles:
let data = readFile(file) let data = readFile(file)
timeIt "pixie " & file.splitPath.tail & " decode", 10: timeIt "pixie " & file.splitPath.tail & " decode":
discard decodeJpeg(data) discard decodeJpeg(data)
block: block:
@ -11,7 +11,7 @@ block:
let data = readFile(file) let data = readFile(file)
var name = file.splitPath.tail var name = file.splitPath.tail
timeIt "stb " & file.splitPath.tail & " decode", 10: timeIt "stb " & file.splitPath.tail & " decode":
var width, height, channels: int var width, height, channels: int
discard loadFromMemory( discard loadFromMemory(
cast[seq[byte]](data), cast[seq[byte]](data),