From 624b5016f8e68d4beff3adcb009e9a6dba0180b8 Mon Sep 17 00:00:00 2001 From: Lipeng Zhu Date: Tue, 28 Feb 2023 20:43:45 -0500 Subject: [PATCH] Make the tst.sh workload can be configurable --- UnixBench/pgms/multi.sh | 2 +- UnixBench/pgms/tst.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/UnixBench/pgms/multi.sh b/UnixBench/pgms/multi.sh index caab894..76c4165 100755 --- a/UnixBench/pgms/multi.sh +++ b/UnixBench/pgms/multi.sh @@ -16,7 +16,7 @@ ID="@(#)multi.sh:3.4 -- 5/15/91 19:30:24"; instance=1 while [ $instance -le $1 ]; do - /bin/sh "$UB_BINDIR/tst.sh" & + /bin/sh "$UB_BINDIR/tst.sh" 20 & instance=$(($instance + 1)) done wait diff --git a/UnixBench/pgms/tst.sh b/UnixBench/pgms/tst.sh index 611856a..15be37f 100755 --- a/UnixBench/pgms/tst.sh +++ b/UnixBench/pgms/tst.sh @@ -14,7 +14,8 @@ # ############################################################################### ID="@(#)tst.sh:3.4 -- 5/15/91 19:30:24"; -sort >sort.$$ sort.src.$$ od sort.$$ | sort -n -k 1 > od.$$ grep the sort.$$ | tee grep.$$ | wc > wc.$$ rm sort.$$ grep.$$ od.$$ wc.$$