@@ -13,12 +13,12 @@ function main() {
13
13
global $ storeResult ;
14
14
15
15
$ data = [];
16
- $ data ['Zend/bench.php ' ] = runBench (false );
16
+ /* $data['Zend/bench.php'] = runBench(false);
17
17
$data['Zend/bench.php JIT'] = runBench(true);
18
18
$data['Symfony Demo 2.2.3'] = runSymfonyDemo(false);
19
- $ data ['Symfony Demo 2.2.3 JIT ' ] = runSymfonyDemo (true );
19
+ $data['Symfony Demo 2.2.3 JIT'] = runSymfonyDemo(true);*/
20
20
$ data ['Wordpress 6.2 ' ] = runWordpress (false );
21
- $ data ['Wordpress 6.2 JIT ' ] = runWordpress (true );
21
+ // $data['Wordpress 6.2 JIT'] = runWordpress(true);
22
22
$ result = json_encode ($ data , JSON_PRETTY_PRINT ) . "\n" ;
23
23
24
24
fwrite (STDOUT , $ result );
@@ -78,7 +78,7 @@ function runWordpress(bool $jit): array {
78
78
79
79
// Warmup
80
80
runPhpCommand ([$ dir . '/index.php ' ], $ dir );
81
- return runValgrindPhpCgiCommand ([$ dir . '/index.php ' ], cwd: $ dir , jit: $ jit , warmup: 50 , repeat: 50 );
81
+ return runValgrindPhpCgiCommand ([$ dir . '/index.php ' ], cwd: $ dir , jit: $ jit , warmup: 2 , repeat: 2 );
82
82
}
83
83
84
84
function runPhpCommand (array $ args , ?string $ cwd = null ): ProcessResult {
@@ -97,11 +97,12 @@ function runValgrindPhpCgiCommand(
97
97
'valgrind ' ,
98
98
'--tool=callgrind ' ,
99
99
'--dump-instr=yes ' ,
100
- '--callgrind-out-file=/dev/null ' ,
100
+ // '--callgrind-out-file=/dev/null',
101
101
'-- ' ,
102
102
$ phpCgi ,
103
103
'-T ' . ($ warmup ? $ warmup . ', ' : '' ) . $ repeat ,
104
104
'-d max_execution_time=0 ' ,
105
+ '-c ' , '/run/media/niels/MoreData/php-src ' ,
105
106
'-d opcache.enable=1 ' ,
106
107
'-d opcache.jit_buffer_size= ' . ($ jit ? '128M ' : '0 ' ),
107
108
'-d opcache.validate_timestamps=0 ' ,
0 commit comments