Skip to content

Commit

Permalink
Changed the default number of iterations from 10 to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Feb 4, 2023
1 parent 2e0cf84 commit 069a6ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ Result example:
7 14.6678 ms 14.0797 ms
8 14.7602 ms 14.613 ms
9 14.9372 ms 15.6712 ms
10 15.2036 ms 14.6706 ms
...
100 15.2036 ms 14.6706 ms
------- ------------- -------------
min 11.3845 ms 14.0797 ms
max 15.3918 ms 15.6712 ms
Expand All @@ -81,7 +82,7 @@ When measuring the average value among the results, when more than 10 iterations

### Iterations Count

By default, the comparator performs 10 iterations per callback, but you can change this number by calling the `iterations` method:
By default, the comparator performs 100 iterations per callback, but you can change this number by calling the `iterations` method:

```php
use DragonCode\RuntimeComparison\Comparator;
Expand Down
2 changes: 1 addition & 1 deletion src/Comparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Comparator
{
protected View $view;

protected int $iterations = 10;
protected int $iterations = 100;

protected bool $withData = true;

Expand Down

0 comments on commit 069a6ec

Please sign in to comment.