From 3abdfb849525d89afc9b79c2dd93bde1821453db Mon Sep 17 00:00:00 2001 From: treeform Date: Sun, 10 Jul 2022 00:02:27 -0700 Subject: [PATCH] fix bench jpeg --- tests/bench_jpeg.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bench_jpeg.nim b/tests/bench_jpeg.nim index 93a5de4..284d7f5 100644 --- a/tests/bench_jpeg.nim +++ b/tests/bench_jpeg.nim @@ -3,7 +3,7 @@ import benchy, pixie/fileformats/jpeg, jpegsuite, os, stb_image/read as stbi for file in jpegSuiteFiles: let data = readFile(file) - timeIt "pixie " & file.splitPath.tail & " decode", 10: + timeIt "pixie " & file.splitPath.tail & " decode": discard decodeJpeg(data) block: @@ -11,7 +11,7 @@ block: let data = readFile(file) var name = file.splitPath.tail - timeIt "stb " & file.splitPath.tail & " decode", 10: + timeIt "stb " & file.splitPath.tail & " decode": var width, height, channels: int discard loadFromMemory( cast[seq[byte]](data),