Skip to content
This repository
tree: 6201cc9df6
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (10 sloc) 0.378 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#/bin/bash
#usage: ./tools/size.sh

SRC=sea-debug.js
MIN=sea.js

SIZE_SRC=$(cat dist/$SRC | wc -c)
SIZE_MIN=$(cat dist/$MIN | wc -c)
SIZE_GZIP=$(gzip -nfc --best dist/$MIN | wc -c)

echo " `echo "scale=3;$SIZE_SRC/1024" | bc -l` bytes $SRC"
echo " `echo "scale=3;$SIZE_MIN/1024" | bc -l` bytes $MIN"
echo " `echo "scale=3;$SIZE_GZIP/1024" | bc -l` bytes $MIN gzipped"
Something went wrong with that request. Please try again.