Hi folks,
With the coming ksh93 update 2 and it replacing several commands
like wc, tail, head, join etc. Theres a need to have a benchmark
to measure at least before and after ksh93 update 2 change.
Roland and I were talking on irc last night about this. We'll need
to figure out a decent method of benchmarking these commands.
So within the next few days we hope to work out a method for benchmarking ksh93
This hopefully is a start of that discussion, rather than blindly writing
adhoc timing scripts..
One way, suggested by Roland could be:
cmd = mkdir:
timex ksh93 -c 'rmdir "xyz" >/dev/null ; \
for ((i=0 ; i < 1000 ; i++)) ; do /bin/mkdir -p "xyz" ; done'
that would benchmark the on disk mkdir. To use the builtin ksh93's mkdir,
just remove the '/bin/'
timex ksh93 -c 'rmdir "xyz" >/dev/null ; \
for ((i=0 ; i < 1000 ; i++)) ; do mkdir -p "xyz" ; done'
Another method, using the above example could be to see how many times
mkdir got called in a given time period.
Other than basic benchmarking the environment too can be measured, i.e.
the locale can have an impact, e.g. LC_ALL=C and LC_ALL=en_US.UTF-8
So too to be looked at is the datasize used with commands, eg
tail -X on a large or small file. Small being about 256k or so and
large being at least 1GB.
For starters is there a definite list of those command we'd want to
look at ? i.e. those being replaced by ksh93.
Regards,
--
Sean.
.
btw, I'm from the perfpit group within Sun.