Skip to content

Commit

Permalink
skip the actual performance check with ASAN
Browse files Browse the repository at this point in the history
The seems to greatly extend the runtime.
  • Loading branch information
tonycoz committed Nov 27, 2023
1 parent 7a28def commit 3e3ef48
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions t/perf/tmps.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

0 comments on commit 3e3ef48

Please sign in to comment.