Skip to content

Commit

Permalink
Adding test for new sequence mode (#5771)
Browse files Browse the repository at this point in the history
* Adding test for new sequence mode

* Update option name

* Clean up testing spacing and new lines
  • Loading branch information
debermudez committed May 17, 2023
1 parent c7254d3 commit 725655e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions qa/L0_perf_analyzer/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,34 @@ if [ $(cat $CLIENT_LOG | grep "Request Rate: 40" | wc -l) -eq 0 ]; then
fi
set -e

# Test --serial-sequences mode
set +e
$PERF_ANALYZER -v -i $PROTOCOL -m simple_savedmodel_sequence_object -p 1000 --request-rate-range 100:200:50 --serial-sequences \
--input-data=$SEQ_JSONDATAFILE -s ${STABILITY_THRESHOLD} >$CLIENT_LOG 2>&1
if [ $? -ne 0 ]; then
cat $CLIENT_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi
if [ $(cat $CLIENT_LOG | grep "${ERROR_STRING}" | wc -l) -ne 0 ]; then
cat $CLIENT_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi

$PERF_ANALYZER -v -i $PROTOCOL -m simple_savedmodel_sequence_object -p 1000 --request-intervals $CUSTOM_SCHEDULE_FILE --serial-sequences \
--input-data=$SEQ_JSONDATAFILE -s ${STABILITY_THRESHOLD} >$CLIENT_LOG 2>&1
if [ $? -ne 0 ]; then
cat $CLIENT_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi
if [ $(cat $CLIENT_LOG | grep "${ERROR_STRING}" | wc -l) -ne 0 ]; then
cat $CLIENT_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi
set -e

## Test perf_analyzer with MPI / multiple models

Expand Down

0 comments on commit 725655e

Please sign in to comment.