summaryrefslogtreecommitdiff
path: root/2019/rust/day07/calibrate_amplifiers_with_feedback.sh
diff options
context:
space:
mode:
authorcos <cos>2019-12-11 18:06:25 +0100
committercos <cos>2019-12-11 18:06:25 +0100
commit0ce19fa7cd9b69ca1d49e6122d6f028740a0668c (patch)
tree70ac5aaf4321f545655bb9d4241b6461a5747494 /2019/rust/day07/calibrate_amplifiers_with_feedback.sh
parent4c6c41b055d857f7dc2599262720a83da8d215be (diff)
downloadadventofcode-0ce19fa7cd9b69ca1d49e6122d6f028740a0668c.zip
Add execution time measurement scripts
Diffstat (limited to '2019/rust/day07/calibrate_amplifiers_with_feedback.sh')
-rwxr-xr-x2019/rust/day07/calibrate_amplifiers_with_feedback.sh12
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}"
}