Update docker/bench/run-ab.sh

This commit is contained in:
colin 2024-02-07 11:09:04 +00:00
parent 7ee72e7590
commit d645fdec33
1 changed files with 4 additions and 2 deletions

View File

@ -63,11 +63,13 @@ parse_to_csv() {
status="pass" status="pass"
test_type="AB" test_type="AB"
elif [[ "$line" =~ "TTFB test failed" ]]; then elif [[ "$line" =~ "TTFB test failed" ]]; then
time="N/A" # Indicate not applicable or failed to obtain time # Assuming a default value or detection logic for failed test time
time="0" # Placeholder for failed test time
status="fail" status="fail"
test_type="TTFB" test_type="TTFB"
elif [[ "$line" =~ "ApacheBench test failed" ]]; then elif [[ "$line" =~ "ApacheBench test failed" ]]; then
time="N/A" # Indicate not applicable or failed to obtain time # Assuming a default value or detection logic for failed test time
time="0" # Placeholder for failed test time
status="fail" status="fail"
test_type="AB" test_type="AB"
fi fi