pixie/tests/benchmark_svg.nim
treeform 753352b53f f
2021-11-28 11:11:38 -08:00

8 lines
229 B
Nim

import benchy, pixie/fileformats/svg, pixie/fileformats/png
let data = readFile("tests/fileformats/svg/Ghostscript_Tiger.svg")
writeFile("tiger.png", decodeSvg(data).encodePng())
timeIt "svg decode":
discard decodeSvg(data)