Skip to content

Commit

Permalink
Update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Denisyuk authored and Aleksandr Denisyuk committed May 25, 2022
1 parent 21dad6e commit de28079
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benchmarks/FrequencyRandomBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct()
]);

$this->throttler = new Throttler(
new FrequencyRandomStrategy()
new FrequencyRandomStrategy(),
);
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/RandomBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct()
]);

$this->throttler = new Throttler(
new RandomStrategy()
new RandomStrategy(),
);
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/RoundRobinBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct()

$this->throttler = new Throttler(
new RoundRobinStrategy(
new InMemoryCounter()
new InMemoryCounter(start: 0),
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/SmoothWeightedRoundRobinBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct()
]);

$this->throttler = new Throttler(
new SmoothWeightedRoundRobinStrategy()
new SmoothWeightedRoundRobinStrategy(),
);
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/WeightedRandomBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct()
]);

$this->throttler = new Throttler(
new WeightedRandomStrategy()
new WeightedRandomStrategy(),
);
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/WeightedRoundRobinBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct()

$this->throttler = new Throttler(
new WeightedRoundRobinStrategy(
new InMemoryCounter()
new InMemoryCounter(start: 0),
)
);
}
Expand Down

0 comments on commit de28079

Please sign in to comment.