Commit ff8a3eaf authored by nagayama15's avatar nagayama15

Improve aggregation script

parent 3307959d
#!/usr/bin/env zsh
cd "$(dirname "$0")" || exit 1
path=("$PWD/../build/src" $path[@])
wasms=(
......@@ -7,12 +8,12 @@ wasms=(
$PWD/ammo.wasm.wasm
)
echo "name, funcs, size[B], funcord[B], opswap[B]"
echo "name, size[B], funcs, opswap[bit], funcord[bit]"
for i in $wasms[@]
do
size="$(stat -f%z "$i")"
funcs="$(funccnt "$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, $funcs, $funcord, $opswap"
echo "${i/$PWD\//}, $size, $funcs, $opswap, $funcord"
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