From 93cac626b3033077bb969696f154d7f07dd6ea7b Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Fri, 10 Jun 2022 14:22:17 -0500 Subject: [PATCH] only benchmark render --- tests/benchmark_svg.nim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/benchmark_svg.nim b/tests/benchmark_svg.nim index cde9a8a..b6a7784 100644 --- a/tests/benchmark_svg.nim +++ b/tests/benchmark_svg.nim @@ -1,6 +1,8 @@ import benchy, pixie/fileformats/svg -let data = readFile("tests/fileformats/svg/Ghostscript_Tiger.svg") +let + data = readFile("tests/fileformats/svg/Ghostscript_Tiger.svg") + parsed = parseSvg(data) -timeIt "svg parse + render": - discard newImage(parseSvg(data)) +timeIt "svg render": + discard newImage(parsed)