#!/bin/sh


LOOPS="$1"
shift

[ -z "$LOOPS" ] && exit 1

run_measure() {
	echo "$1"
	shift
	./measure-newton.sh "$LOOPS" "$@" 2>&1 | tail -n 1 | sed 's/^[>]*//'
}

run_measure "Without any agent"
run_measure "With bare agent" --std-agent-bare
run_measure "With agent, without measuring" --std-agent=no-measuring
run_measure "With agent, with measuring" --std-agent

#!/bin/sh


LOOPS="$1"
shift

[ -z "$LOOPS" ] && exit 1

run_measure() {
	echo "$1"
	shift
	./measure-newton.sh "$LOOPS" "$@" 2>&1 | tail -n 1 | sed 's/^[>]*//'
}

run_measure "Without any agent"
run_measure "With bare agent" --std-agent-bare
run_measure "With agent, without measuring" --std-agent=no-measuring
run_measure "With agent, with measuring (unobtrusive)" "--std-agent=,skip.factor=1000"
run_measure "With agent, with measuring" "--std-agent"
run_measure "With agent, with measuring (intensive)" "--std-agent=,skip.factor=2"
run_measure "With agent, with measuring (very intensive)" "--std-agent=,skip.factor=1"

Extend Newton comparison (different skip factors)
Extend Newton comparison (different skip factors)
