File: dotime

package info (click to toggle)
zmailer 2.99.51.52pre3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 16,596 kB
  • ctags: 7,422
  • sloc: ansic: 90,470; sh: 3,608; makefile: 2,784; perl: 1,585; python: 115; awk: 22
file content (20 lines) | stat: -rwxr-xr-x 568 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
# simumalloc makes a good thorough exercise for malloc and free.
# need something for realloc, though.
case $# in
*)	;;
0)	echo "Usage: $0 simumalloc_extension [simumalloc_options]" >&2; exit 1;;
esac
ext=$1
shift
case "$ext" in
''|_*)	;;
*)	ext="_$ext";;
esac
echo "# $ext"
set -x
/bin/time ./simumalloc$ext -t 100000 -s 1024 -l 2000 "$@"
/bin/time ./simumalloc$ext -t 300000 -s 512 -l 20 "$@"
/bin/time ./simumalloc$ext -t 150000 -s 512 -l 20 "$@"
/bin/time ./simumalloc$ext -t 150000 -s 512 -l 500 "$@"
/bin/time ./simumalloc$ext -t 20000 -s 512 -a "$@"