Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions test/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ LOG_TABLE () {
total_time=$(_SUBSTRUCTION $time_database_saved $time_begin | xargs -0 printf "%.0f")
line_number=$(wc -l build.log | cut -d" " -f1)

if [ $total_time -lt 10 ] || ([ $line_number -lt 300 ] && [ $1 != "HOT" ]); then
echo "--------------------------------------------"
echo -e '\033[41;37m !! Build failed !! \033[0m'
head -n 400 build.log
exit 1
if [ "$1" != "HOT" ]; then
if [ "$total_time" -lt 10 ] || [ "$line_number" -lt 300 ]; then
echo "--------------------------------------------"
echo -e '\033[41;37m !! Build failed !! \033[0m'
head -n 400 build.log
exit 1
fi
fi

if [ $total_time -gt 40 ]; then
if [ "$total_time" -gt 40 ]; then
echo "--------------------------------------------"
echo -e '\033[41;37m !! Performance regression detected !! \033[0m'
exit 1
Expand Down