Skip to content

Commit 7253bd7

Browse files
committed
Removed the hardcoded php command and moved it to the BENCHMARK_CMD configuration value
1 parent 242d5d4 commit 7253bd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* CLI instruction to run benchmark processes
3030
*/
31-
const BENCHMARK_CMD = 'jpbench';
31+
const BENCHMARK_CMD = 'php jpbench';
3232

3333
/**
3434
* CLI instruction to run automated tests

src/utilities.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function spawnProcessFiber(string $library, int $patchsize, int $iterationstart,
9999
$Fiber = new \Fiber(function(string $library, int $patchsize, int $iterationstart, int $iterationend): void
100100
{
101101
$cmd = sprintf(
102-
'php %s %s %d %d %d',
102+
'%s %s %d %d %d',
103103
BENCHMARK_CMD,
104104
$library,
105105
$patchsize,

0 commit comments

Comments
 (0)