Page MenuHomeFreeBSD
Authored By
jmg
Mar 2 2021, 12:09 AM
Size
605 B
Referenced Files
None
Subscribers
None
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

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3485777
Default Alt Text
script (605 B)

Event Timeline