fix bench jpeg
This commit is contained in:
parent
4b3e205445
commit
3abdfb8495
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue