@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/../../../../vendor/autoload.php'; |
|
| 4 | +require_once __DIR__.'/../../../../vendor/autoload.php'; |
|
| 5 | 5 | |
| 6 | 6 | use function Terah\Assert\Assert; |
| 7 | 7 | |
@@ -14,30 +14,30 @@ discard block |
||
| 14 | 14 | echo "Benchmarking static Terah\\Assert"; |
| 15 | 15 | $start = microtime(true); |
| 16 | 16 | |
| 17 | -for ( $i = 0 ; $i < 100000 ; $i++ ) |
|
| 17 | +for ($i = 0; $i < 100000; $i++) |
|
| 18 | 18 | { |
| 19 | 19 | Assert::that(true)->true(); |
| 20 | 20 | } |
| 21 | 21 | $time = microtime(true) - $start; |
| 22 | -echo "Taken: $time" . PHP_EOL; |
|
| 22 | +echo "Taken: $time".PHP_EOL; |
|
| 23 | 23 | |
| 24 | 24 | echo "Benchmarking new Terah\\Assert"; |
| 25 | 25 | $start = microtime(true); |
| 26 | 26 | |
| 27 | -for ( $i = 0 ; $i < 100000 ; $i++ ) |
|
| 27 | +for ($i = 0; $i < 100000; $i++) |
|
| 28 | 28 | { |
| 29 | 29 | Assert(true)->true(); |
| 30 | 30 | } |
| 31 | 31 | $time = microtime(true) - $start; |
| 32 | -echo "Taken: $time" . PHP_EOL; |
|
| 32 | +echo "Taken: $time".PHP_EOL; |
|
| 33 | 33 | |
| 34 | 34 | echo "Benchmarking fluent Beberlei"; |
| 35 | 35 | $start = microtime(true); |
| 36 | 36 | |
| 37 | -for ( $i = 0 ; $i < 100000 ; $i++ ) |
|
| 37 | +for ($i = 0; $i < 100000; $i++) |
|
| 38 | 38 | { |
| 39 | 39 | Beberlei\that(true)->true(); |
| 40 | 40 | } |
| 41 | 41 | $time = microtime(true) - $start; |
| 42 | -echo "Taken: $time" . PHP_EOL; |
|
| 42 | +echo "Taken: $time".PHP_EOL; |
|
| 43 | 43 | |