mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2024-12-11 23:30:07 +08:00
Make tst.sh workload configurable with MULTI_SH_WORK_FACTOR env (#86)
Co-authored-by: Glenn Strauss <gstrauss@gluelogic.com>
This commit is contained in:
parent
81e9de58c5
commit
d130340bd3
@ -107,7 +107,13 @@ The following individual tests are available:
|
||||
fsdisk File Copy 4096 bufsize 8000 maxblocks
|
||||
shell1 Shell Scripts (1 concurrent) (runs "looper 60 multi.sh 1")
|
||||
shell8 Shell Scripts (8 concurrent) (runs "looper 60 multi.sh 8")
|
||||
shell16 Shell Scripts (8 concurrent) (runs "looper 60 multi.sh 16")
|
||||
shell16 Shell Scripts (16 concurrent)(runs "looper 60 multi.sh 16")
|
||||
Environment variable MULTI_SH_WORK_FACTOR (default 1)
|
||||
can be set to multiply the size of test input data (~8k)
|
||||
Note: changing MULTI_SH_WORK_FACTOR modifies the test.
|
||||
However, modifying the user/kernel workload balance may
|
||||
be useful for comparison with other systems on which the
|
||||
benchmark was run using the same MULTI_SH_WORK_FACTOR.
|
||||
|
||||
2d:
|
||||
2d-rects 2D graphics: rectangles
|
||||
|
@ -15,9 +15,21 @@
|
||||
###############################################################################
|
||||
ID="@(#)multi.sh:3.4 -- 5/15/91 19:30:24";
|
||||
instance=1
|
||||
sort_src=sort.src
|
||||
work_factor=${MULTI_SH_WORK_FACTOR:-1}
|
||||
if [ $work_factor -gt 1 ]; then
|
||||
inputs=
|
||||
for i in $(seq $work_factor); do inputs="$inputs $sort_src"; done
|
||||
cat $inputs > sort.src-alt.$$
|
||||
sort_src=sort.src-alt.$$
|
||||
fi
|
||||
|
||||
while [ $instance -le $1 ]; do
|
||||
/bin/sh "$UB_BINDIR/tst.sh" &
|
||||
/bin/sh "$UB_BINDIR/tst.sh" $sort_src &
|
||||
instance=$(($instance + 1))
|
||||
done
|
||||
wait
|
||||
|
||||
if [ $work_factor -gt 1 ]; then
|
||||
rm $sort_src
|
||||
fi
|
||||
|
@ -14,7 +14,7 @@
|
||||
#
|
||||
###############################################################################
|
||||
ID="@(#)tst.sh:3.4 -- 5/15/91 19:30:24";
|
||||
sort >sort.$$ <sort.src
|
||||
sort > sort.$$ < $1
|
||||
od sort.$$ | sort -n -k 1 > od.$$
|
||||
grep the sort.$$ | tee grep.$$ | wc > wc.$$
|
||||
rm sort.$$ grep.$$ od.$$ wc.$$
|
||||
|
Loading…
Reference in New Issue
Block a user