diff options
author | cos <cos> | 2019-12-11 18:06:25 +0100 |
---|---|---|
committer | cos <cos> | 2019-12-11 18:06:25 +0100 |
commit | 0ce19fa7cd9b69ca1d49e6122d6f028740a0668c (patch) | |
tree | 70ac5aaf4321f545655bb9d4241b6461a5747494 /2019/rust/day07/calibrate_amplifiers_with_feedback.sh | |
parent | 4c6c41b055d857f7dc2599262720a83da8d215be (diff) | |
download | adventofcode-0ce19fa7cd9b69ca1d49e6122d6f028740a0668c.zip |
Add execution time measurement scripts
Diffstat (limited to '2019/rust/day07/calibrate_amplifiers_with_feedback.sh')
-rwxr-xr-x | 2019/rust/day07/calibrate_amplifiers_with_feedback.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/2019/rust/day07/calibrate_amplifiers_with_feedback.sh b/2019/rust/day07/calibrate_amplifiers_with_feedback.sh index 7a3a896..2506746 100755 --- a/2019/rust/day07/calibrate_amplifiers_with_feedback.sh +++ b/2019/rust/day07/calibrate_amplifiers_with_feedback.sh @@ -6,12 +6,12 @@ launch_chain() local p="input" (echo ${6}; (echo ${5}; (echo ${4}; (echo ${3}; (echo "${2} - ${1}" > "${input_file}";tail -f "${input_file}")| RUST_BACKTRACE=1 \ - ../target/debug/day07 --mode stdio --program "${p}") | \ - ../target/debug/day07 --mode stdio --program "${p}") | \ - ../target/debug/day07 --mode stdio --program "${p}") | \ - ../target/debug/day07 --mode stdio --program "${p}") | \ - ../target/debug/day07 --mode stdio --program "${p}" >> "${input_file}" + ${1}" > "${input_file}";tail -f "${input_file}")| \ + ../target/release/day07 --mode stdio --program "${p}") | \ + ../target/release/day07 --mode stdio --program "${p}") | \ + ../target/release/day07 --mode stdio --program "${p}") | \ + ../target/release/day07 --mode stdio --program "${p}") | \ + ../target/release/day07 --mode stdio --program "${p}" >> "${input_file}" tail -1 "${input_file}" } |