#!/bin/sh myshell=$(basename $(readlink /proc/$$/exe)) bigdirs="/usr/lib/$(uname -m)-linux-gnu /usr/lib64" # a dir with a lot of files wordfiles='words american-english' # a big file for d in $bigdirs; do if [ -d "$d" ]; then filedir=$d break fi done [ -d "$filedir" ] || exec echo "bigdir missing!" for w in $wordfiles; do if [ -f "/usr/share/dict/$w" ]; then stringsfile=/usr/share/dict/$w break fi done [ -f "$stringsfile" ] || exec echo "stringsfile missing!" echo "Bencharking $myshell" echo 'Test 1: strings and arithmetic operations' env time -f 'Done in %e seconds' $myshell <