bkabrda / rpms / grep

Forked from rpms/grep 6 years ago
Clone

Blame grep-2.22-profile-test-long-pattern-perf.patch

3c2c337
diff --git a/tests/long-pattern-perf b/tests/long-pattern-perf
3c2c337
index c222c02..90d9738 100755
3c2c337
--- a/tests/long-pattern-perf
3c2c337
+++ b/tests/long-pattern-perf
3c2c337
@@ -30,9 +30,14 @@ seq 10000 100000 | tr -d '\012' > re-10x || framework_failure_
3c2c337
 base_ms=$(user_time_ 1 grep -f re in    ) || fail=1
3c2c337
 b10x_ms=$(user_time_ 1 grep -f re-10x in) || fail=1
3c2c337
 
3c2c337
+echo "base_ms: $base_ms"
3c2c337
+echo "b10x_ms: $b10x_ms"
3c2c337
+
3c2c337
 # Increasing the length of the regular expression by a factor
3c2c337
 # of 10 should cause no more than a 10x increase in duration.
3c2c337
 # However, we'll draw the line at 20x to avoid false-positives.
3c2c337
 expr $base_ms '<' $b10x_ms / 20 && fail=1
3c2c337
 
3c2c337
+echo "expr: `expr $b10x_ms / 20`"
3c2c337
+echo "expr_full: `expr $b10x_ms / 20`"
3c2c337
 Exit $fail