Exemplo n.º 1
0
<?php

/*
 * This file is part of the PHPBench package
 *
 * (c) Daniel Leech <*****@*****.**>
 *
 * 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($autoloader);
Exemplo n.º 2
0
<?php

/*
 * This file is part of the PHP Bench package
 *
 * (c) Daniel Leech <*****@*****.**>
 *
 * 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')) {
    require __DIR__ . '/../vendor/autoload.php';
} elseif (is_file(__DIR__ . '/../../../autoload.php')) {
    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();