diff options
author | pommicket <pommicket@gmail.com> | 2025-09-08 15:02:43 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-08 15:11:36 -0400 |
commit | 4891fa07a51f8da70773cbdbc64ff3aa7ebecf58 (patch) | |
tree | 6ccb068bbcd4d1df039f70b5c1fd2c83724c9282 /check-size.sh | |
parent | ea5bb4e9f7736fcd54fa2bff82402f3a6eb5748f (diff) |
Update to latest version of png crate
Diffstat (limited to 'check-size.sh')
-rwxr-xr-x | check-size.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/check-size.sh b/check-size.sh index dca7d0b..ea4ecde 100755 --- a/check-size.sh +++ b/check-size.sh @@ -5,3 +5,6 @@ cd examples/wasm-minipng && cargo b --release && cd ../.. && wasm-opt --strip-de cd examples/wasm-png && cargo b --release && cd ../.. && wasm-opt --strip-debug -Oz examples/wasm-png/target/wasm32-unknown-unknown/release/wasm_png.wasm -o target/png.wasm && gzip -k -f target/png.wasm || exit 1 wc -c target/png.wasm.gz target/minipng.wasm.gz | head -n2 +pngsz=$(wc -c target/png.wasm.gz | cut -d' ' -f1) +minipngsz=$(wc -c target/minipng.wasm.gz | cut -d' ' -f1) +echo 'Ratio: '$(python3 -c "print($pngsz / $minipngsz)") |