Skip to content

Commit 06a8860

Browse files
committed
refactor: Remover espaços em branco desnecessários nos testes de desempenho
1 parent dac5254 commit 06a8860

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/Performance/EndToEndPerformanceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ public function testExtremePerformanceMode(): void
107107

108108
$endTime = microtime(true);
109109
$totalTime = $endTime - $startTime;
110-
110+
111111
// Ensure timing makes sense
112112
if ($totalTime <= 0 || $totalTime > 300) {
113113
$this->markTestSkipped('Performance test skipped - timing measurement unreliable in CI');
114114
}
115-
115+
116116
$throughput = count($results) / $totalTime;
117117

118118
// Realistic performance expectations for CI environment with safety checks
119119
$this->assertGreaterThan(0, $totalTime, 'Total time should be positive');
120120
$this->assertGreaterThan(0, count($results), 'Should have processed some results');
121-
121+
122122
// Only test throughput if timing is reasonable
123123
if ($totalTime > 0 && $totalTime < 300) { // 5 minutes max
124124
$this->assertGreaterThan(1, $throughput, 'Should handle >1 req/s in extreme mode');

tests/Performance/PerformanceMonitorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function testRequestLifecycleTracking(): void
7272
for ($i = 0; $i < 10; $i++) {
7373
$reqId = $requestId . '_' . $i;
7474
$this->monitor->startRequest($reqId, $context);
75-
75+
7676
// Vary processing times for meaningful percentiles
7777
usleep(random_int(50000, 150000)); // 50-150ms
78-
78+
7979
$this->monitor->endRequest($reqId, 200);
8080
}
8181

0 commit comments

Comments
 (0)