-
-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathphpbench.php
More file actions
25 lines (21 loc) · 740 Bytes
/
phpbench.php
File metadata and controls
25 lines (21 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
use PhpBench\Exception\ConfigurationPreProcessingError;
/*
* This file is part of the PHPBench package
*
* (c) Daniel Leech <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
$autoloader = require __DIR__ . '/../vendor/autoload.php';
} elseif (is_file(__DIR__ . '/../../../autoload.php')) {
$autoloader = require __DIR__ . '/../../../autoload.php';
} else {
echo 'Cannot find the vendor directory, have you executed composer install?' . PHP_EOL;
echo 'See https://getcomposer.org to get Composer.' . PHP_EOL;
exit(1);
}
PhpBench\PhpBench::run();