Skip to content

Commit

Permalink
Fixed README and benchmark autoloading vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
radek-ziemniewicz committed Aug 30, 2020
1 parent 1c07f0c commit cff7863
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ local computer. The second line is ready to use if you installed this
library as a package in your project:

```
php bin/benchmark.php
php vendor/quillguild/bin/benchmark.php
php bin/local.php
php vendor/quillguild/benchmark/bin/benchmark.php
```

##### HTTP GET requests

```
php bin/benchmark.php benchmark:http:get https://example.org 10 2
php vendor/quillguild/bin/benchmark.php benchmark:http:get https://example.org 10 2
php bin/local.php benchmark:http:get https://example.org 10 2
php vendor/quillguild/benchmark/bin/benchmark.php benchmark:http:get https://example.org 10 2
```

##### Command line calls

```
php bin/benchmark.php benchmark:console "php ../dependency-injection-example/public/php-di.php" 10 2
php vendor/quillguild/bin/benchmark.php benchmark:console "php ../dependency-injection-example/public/php-di.php" 10 2
php bin/local.php benchmark:console "php ../dependency-injection-example/public/php-di.php" 10 2
php vendor/quillguild/benchmark/bin/benchmark.php benchmark:console "php ../dependency-injection-example/public/php-di.php" 10 2
```

To see detailed descriptions for every command, ready Bash usage below.
Expand Down
2 changes: 1 addition & 1 deletion bin/benchmark.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../../../../vendor/autoload.php';

use QuillBenchamrk\Commands\ConsoleBenchmarkCommand;
use QuillBenchamrk\Commands\HttpGetBenchmarkCommand;
Expand Down
14 changes: 14 additions & 0 deletions bin/local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/../vendor/autoload.php';

use QuillBenchamrk\Commands\ConsoleBenchmarkCommand;
use QuillBenchamrk\Commands\HttpGetBenchmarkCommand;
use Symfony\Component\Console\Application;

$application = new Application();

$application->add(new HttpGetBenchmarkCommand());
$application->add(new ConsoleBenchmarkCommand());
$application->run();

0 comments on commit cff7863

Please sign in to comment.