Skip to content

Commit d377407

Browse files
Update README with Benchmark::make() usage
Added usage example for Benchmark class with static method.
1 parent 4e032f5 commit d377407

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ bench()->compare(
9999

100100
#### As a class
101101

102+
> [!TIP]
103+
>
104+
> You can also use a call to the `make` static method:
105+
>
106+
> ```php
107+
> use DragonCode\Benchmark\Benchmark;
108+
>
109+
> Benchmark::make()->compare(...);
110+
> ```
111+
102112
```php
103113
use DragonCode\Benchmark\Benchmark;
104114

0 commit comments

Comments
 (0)