set -e cnts="10 20 40 100 500 10000" for cs in 16 32 64 128 256 $((4*1024*1024)); do rm -f /usr/obj/usr/src.git/amd64.amd64/lib/libc/vsscanf.* (cd /usr/src.git/lib/libc && CFLAGS=-DVSSCANF_CHUNK_SIZE=$cs make -j 4) cc -o t t.c -O2 /usr/obj/usr/src.git/amd64.amd64/lib/libc/libc.a && ./t for j in $cnts; do cnt=$j for i in $(jot 5 1); do ./t $cnt | head -n 3 | tail -n 1 | awk '{print $2}'; done > newvscanf.$cs.$cnt.mini done done cc -o t t.c -O2 && ./t for j in $cnts; do cnt=$j for i in $(jot 5 1); do ./t $cnt | head -n 3 | tail -n 1 | awk '{print $2}'; done > aorigvscanf.$cnt.mini done