Add raw to benchmark PNG.
This commit is contained in:
parent
c81c336f55
commit
cc880be3ff
1 changed files with 8 additions and 1 deletions
|
@ -6,9 +6,16 @@ let
|
||||||
data = readFile(filePath)
|
data = readFile(filePath)
|
||||||
|
|
||||||
timeIt "pixie decode":
|
timeIt "pixie decode":
|
||||||
keep decodePng(data)
|
keep decodePngRaw(data)
|
||||||
|
|
||||||
timeIt "pixie encode":
|
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)
|
let decoded = decodePng(data)
|
||||||
keep encodePng(decoded).len
|
keep encodePng(decoded).len
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue