diff --git a/t/perf/tmps.t b/t/perf/tmps.t index ad0a6be74e60e..e5b09b9ac9458 100644 --- a/t/perf/tmps.t +++ b/t/perf/tmps.t @@ -10,6 +10,7 @@ BEGIN { use strict; use warnings; +use Config; # test this many times to try to avoid noise from othe processes my $trial_count = 3; @@ -50,7 +51,11 @@ my $ratio = $large_size / $small_size; my $worst = $min_small * $ratio * 2; note "worst allowed $worst"; -cmp_ok($min_large, '<', $worst, - "check growing the tmps stack takes O(n) time"); - +SKIP: +{ + skip "santize greatly extends large realloc times", 1 + if $Config{ccflags} =~ /-fsanitize/; + cmp_ok($min_large, '<', $worst, + "check growing the tmps stack takes O(n) time"); +} done_testing();