From 3e3ef48e030e62f49f1b1fffc1e574c3bdea6450 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 28 Nov 2023 10:10:33 +1100 Subject: [PATCH] skip the actual performance check with ASAN The seems to greatly extend the runtime. --- t/perf/tmps.t | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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();