Add raw to benchmark PNG.

This commit is contained in:
Andre von Houck 2021-09-16 11:41:47 -07:00
parent c81c336f55
commit cc880be3ff

View file

@ -6,9 +6,16 @@ let
data = readFile(filePath)
timeIt "pixie decode":
keep decodePng(data)
keep decodePngRaw(data)
timeIt "pixie encode":
let decoded = decodePngRaw(data)
keep encodePng(decoded).len
timeIt "pixie decode + alpha":
keep decodePng(data)
timeIt "pixie encode + alpha":
let decoded = decodePng(data)
keep encodePng(decoded).len