freebsd-skq/bin
Jilles Tjoelker f1602fa511 test: Optimize operator lookup.
The linear search using strcmp() shows up in pmcstat for several percent.

Split the operators into lengths and whether they start with '-' and compare
bytes using == instead of strcmp().

A simple test

sh -c 'i=0; w=$(printf %0100d 7); while [ "$i" -lt 1000000 ]; do
    v=$(printf %sx%s "$w" "$w"); i=$((i+1)); done'

is over 4% faster on an amd64 bhyve VM.
2016-01-30 19:59:58 +00:00
..
cat Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
chflags
chio
chmod
cp
csh Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
date Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
dd Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as 2015-10-18 05:49:58 +00:00
df Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
domainname
echo
ed ed(1): Prevent possible string overflows 2015-12-18 23:05:36 +00:00
expr Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
freebsd-version Add missing CLEANFILES. 2015-12-07 16:08:13 +00:00
getfacl
hostname
kenv
kill
ln
ls Fix ls -l alignement with new locales 2015-12-07 20:48:28 +00:00
mkdir
mv Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
pax pax: prevent possible buffer overflow 2015-12-29 16:31:28 +00:00
pkill Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
ps Fix spelling, as recommended by igor tool. 2015-12-01 19:20:38 +00:00
pwait
pwd
rcp
realpath
rm Protecting against rm -rf / is now POSIXLY_CORRECT per posix 1003.1 2015-11-07 02:18:19 +00:00
rmail META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
rmdir
setfacl Don't mention the "canonical six" in setfacl(1); it describes semantics 2016-01-23 12:19:37 +00:00
sh sh: Constify internal representation in expand.c. 2016-01-24 22:26:25 +00:00
sleep Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
stty Prevent potential integer overflow 2015-07-13 05:59:41 +00:00
sync
test test: Optimize operator lookup. 2016-01-30 19:59:58 +00:00
tests Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
uuidgen
Makefile Start using the fact that SUBDIR.yes is added to SUBDIR 2015-10-05 21:41:55 +00:00
Makefile.inc