Skip to content

Commit 761ec91

Browse files
committed
Increase warmup
The JIT takes more warmup to compile all hot traces.
1 parent ffcf6ec commit 761ec91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/benchmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function runSymfonyDemo(bool $jit): array {
5555
cloneRepo($dir, 'https://github.com/php/benchmarking-symfony-demo-2.2.3.git');
5656
runPhpCommand([$dir . '/bin/console', 'cache:clear']);
5757
runPhpCommand([$dir . '/bin/console', 'cache:warmup']);
58-
return runValgrindPhpCgiCommand([$dir . '/public/index.php'], cwd: $dir, jit: $jit, warmup: 10);
58+
return runValgrindPhpCgiCommand([$dir . '/public/index.php'], cwd: $dir, jit: $jit, warmup: 50);
5959
}
6060

6161
function runWordpress(bool $jit): array {
@@ -78,7 +78,7 @@ function runWordpress(bool $jit): array {
7878

7979
// Warmup
8080
runPhpCommand([$dir . '/index.php'], $dir);
81-
return runValgrindPhpCgiCommand([$dir . '/index.php'], cwd: $dir, jit: $jit, warmup: 10);
81+
return runValgrindPhpCgiCommand([$dir . '/index.php'], cwd: $dir, jit: $jit, warmup: 50);
8282
}
8383

8484
function runPhpCommand(array $args, ?string $cwd = null): ProcessResult {

0 commit comments

Comments
 (0)