benchmark: inform about configuration in output.
This is useful for default values.
This commit is contained in:
@@ -21,6 +21,7 @@ do
|
|||||||
case "$opt" in
|
case "$opt" in
|
||||||
s)
|
s)
|
||||||
OPTIONS=("${OPTIONS[@]}" -s "$OPTARG")
|
OPTIONS=("${OPTIONS[@]}" -s "$OPTARG")
|
||||||
|
SIEVE=$OPTARG
|
||||||
;;
|
;;
|
||||||
t)
|
t)
|
||||||
TRIALS="$OPTARG"
|
TRIALS="$OPTARG"
|
||||||
@@ -33,6 +34,8 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Calculating primes up to 1,000,000,000"
|
echo "Calculating primes up to 1,000,000,000"
|
||||||
|
echo "Trials: $TRIALS"
|
||||||
|
echo "Sieve segment size: ${SIEVE:-"default"}"
|
||||||
TOTAL="0"
|
TOTAL="0"
|
||||||
for _ in $(seq "$TRIALS")
|
for _ in $(seq "$TRIALS")
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user