Skip to content

Commit 5961712

Browse files
authored
Merge pull request #69 from coderbirju/update_regression_check
Update check regression script
2 parents 4e09c8d + 19b3e09 commit 5961712

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/check_regression.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ compare_stat_p90() {
2222
local current_value="$2"
2323
local stat_name="$3"
2424

25-
# Calculate 125% of the past value
25+
26+
# Calculate 150% of the past value
2627
local threshold=$(calculate_threshold "$past_value")
2728

2829
# Compare the current value with the threshold
2930
if (( $(echo "$current_value > $threshold" |bc -l) )); then
30-
echo "ERROR: $stat_name - Current P90 value ($current_value) exceeds the 125% threshold ($threshold) of the past P90 value ($past_value)"
31+
echo "ERROR: $stat_name - Current P90 value ($current_value) exceeds the 150% threshold ($threshold) of the past P90 value ($past_value)"
3132
return 1
3233
fi
3334

@@ -36,7 +37,8 @@ compare_stat_p90() {
3637

3738
calculate_threshold() {
3839
local past_value="$1"
39-
awk -v past="$past_value" 'BEGIN { print past * 1.25 }'
40+
awk -v past="$past_value" 'BEGIN { print past * 1.5 }'
41+
4042
}
4143

4244
calculate_p90_after_skip() {

0 commit comments

Comments
 (0)