Update docker/bench/run-ab.sh
This commit is contained in:
parent
7ee72e7590
commit
d645fdec33
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue