Skip to content

Commit 48c8f49

Browse files
abnegateclaude
andcommitted
fix: relax parse performance threshold for CI runners
Increase parse performance assertion from 1.0 to 2.0 us/query to prevent flaky failures on shared CI hardware. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c13ca9e commit 48c8f49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/QueryParserTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,16 +640,16 @@ public function testParsePerformance(): void
640640
$mysqlElapsed = (\hrtime(true) - $start) / 1_000_000_000;
641641
$mysqlPerQuery = ($mysqlElapsed / $iterations) * 1_000_000;
642642

643-
// Both should be under 1 microsecond per parse
643+
// Both should be under 2 microseconds per parse (relaxed for CI runners)
644644
$this->assertLessThan(
645-
1.0,
645+
2.0,
646646
$pgPerQuery,
647-
\sprintf('PostgreSQL parse took %.3f us/query (target: < 1.0 us)', $pgPerQuery)
647+
\sprintf('PostgreSQL parse took %.3f us/query (target: < 2.0 us)', $pgPerQuery)
648648
);
649649
$this->assertLessThan(
650-
1.0,
650+
2.0,
651651
$mysqlPerQuery,
652-
\sprintf('MySQL parse took %.3f us/query (target: < 1.0 us)', $mysqlPerQuery)
652+
\sprintf('MySQL parse took %.3f us/query (target: < 2.0 us)', $mysqlPerQuery)
653653
);
654654
}
655655

0 commit comments

Comments
 (0)