diff options
author | Bernard Ogden <bernie.ogden@linaro.org> | 2015-04-09 16:50:08 +0000 |
---|---|---|
committer | Bernard Ogden <bernie.ogden@linaro.org> | 2015-04-09 16:50:08 +0000 |
commit | 2ca65e71e7cf964625a2e1808cb5bcaf291ed350 (patch) | |
tree | a887cef1b858f13e85fcb80de9cafdd1d39a1b4f | |
parent | 95d55a8a16857e096c4ba442bc9b72ad10ef7067 (diff) |
Give me a timestamp between iterations
Very helpful for calculating just how long this brute force beast
will take.
-rwxr-xr-x | bench-malloc-threadgun.sh | 1 | ||||
-rwxr-xr-x | bench-malloc-threadpistol.sh | 1 | ||||
-rwxr-xr-x | lsgun.sh | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/bench-malloc-threadgun.sh b/bench-malloc-threadgun.sh index 5ba4d04..95134b1 100755 --- a/bench-malloc-threadgun.sh +++ b/bench-malloc-threadgun.sh @@ -42,6 +42,7 @@ A57_COUNTERS=(\'\' \ function doit { for i in {1..30}; do #Number of times to run each condition. 30 in some vague hope of statistical validity. + date +%s echo : $binary $binary_args $i | tee -a ~/output.$$.${cpu} taskset $cpu gdb -q -x ${GDBSCRIPT} --args $binary $binary_args 2>&1 >/dev/null | tee -a ~/output.$$.${cpu} done diff --git a/bench-malloc-threadpistol.sh b/bench-malloc-threadpistol.sh index d7dd38d..73e0792 100755 --- a/bench-malloc-threadpistol.sh +++ b/bench-malloc-threadpistol.sh @@ -22,6 +22,7 @@ A57_COUNTERS=(\'\' \ function doit { for i in {1..1}; do #Number of times to run each condition. 30 in some vague hope of statistical validity. + date +%s echo : $binary $binary_args $i | tee -a ~/output.$$.${cpu} taskset $cpu gdb -q -x ${GDBSCRIPT} --args $binary $binary_args 2>&1 >/dev/null | tee -a ~/output.$$.${cpu} done @@ -42,6 +42,7 @@ A57_COUNTERS=(\'\' \ function doit { for i in {1..30}; do #Number of times to run each condition. 30 in some vague hope of statistical validity. + date +%s echo : $binary $binary_args $i | tee -a ~/output.$$.${cpu} taskset $cpu gdb -q -x ${GDBSCRIPT} --args $binary $binary_args 2>&1 >/dev/null | tee -a ~/output.$$.${cpu} done |