Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F17726591
script
jmg (John-Mark Gurney)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
jmg
Mar 2 2021, 12:09 AM
2021-03-02 00:09:08 (UTC+0)
Size
605 B
Referenced Files
None
Subscribers
None
script
View Options
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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3485777
Default Alt Text
script (605 B)
Attached To
Mode
D29007: address a performance problem w/ partial sscanf on long strings...
Attached
Detach File
Event Timeline
Log In to Comment