Skip to content

Commit d83befd

Browse files
Disable xdebug when benchmarking
1 parent b1c16c7 commit d83befd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bin/perf.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
throw new RuntimeException('Unable to locate autoload.php file.');
1010
}
1111

12+
$xdebug = new \Composer\XdebugHandler\XdebugHandler('perf.php');
13+
$xdebug->check();
14+
unset($xdebug);
15+
1216
$dir = isset($argv[1]) ? $argv[1] : __DIR__ . '/../tests/compliance/perf';
1317
is_dir($dir) or die('Dir not found: ' . $dir);
1418
// Warm up the runner

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818

1919
"require-dev": {
20+
"composer/xdebug-handler": "^1.2",
2021
"phpunit/phpunit": "^4.8.36|^7.5.15"
2122
},
2223

0 commit comments

Comments
 (0)