Commit 2c9e8b0e authored by nagayama15's avatar nagayama15

Add an aggregation script

parent db6f68f7
#!/usr/bin/env zsh
path=("$PWD/../build/src" $path[@])
wasms=(
$PWD/styled-jsx/mappings.wasm
$PWD/zlib-wasm/zlib-sample.wasm
$PWD/ammo.wasm.wasm
)
echo "name, size[B], funcord[B], opswap[B]"
for i in $wasms[@]
do
size="$(stat -f%z "$i")"
funcord="$((snpi "$i" funcord "Test" > /dev/null) |& awk '{print $1}')"
opswap="$((snpi "$i" opswap "Test" > /dev/null) |& awk '{print $1}')"
echo "${i/$PWD\//}, $size, $funcord, $opswap"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment