From de28079567dcdae86c11c3f0915a04f05eee1613 Mon Sep 17 00:00:00 2001 From: Aleksandr Denisyuk Date: Wed, 25 May 2022 12:08:37 +0300 Subject: [PATCH] Update benchmarks --- benchmarks/FrequencyRandomBench.php | 2 +- benchmarks/RandomBench.php | 2 +- benchmarks/RoundRobinBench.php | 2 +- benchmarks/SmoothWeightedRoundRobinBench.php | 2 +- benchmarks/WeightedRandomBench.php | 2 +- benchmarks/WeightedRoundRobinBench.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmarks/FrequencyRandomBench.php b/benchmarks/FrequencyRandomBench.php index b38e46b..e0d37c7 100644 --- a/benchmarks/FrequencyRandomBench.php +++ b/benchmarks/FrequencyRandomBench.php @@ -25,7 +25,7 @@ public function __construct() ]); $this->throttler = new Throttler( - new FrequencyRandomStrategy() + new FrequencyRandomStrategy(), ); } diff --git a/benchmarks/RandomBench.php b/benchmarks/RandomBench.php index 8516856..4530aeb 100644 --- a/benchmarks/RandomBench.php +++ b/benchmarks/RandomBench.php @@ -25,7 +25,7 @@ public function __construct() ]); $this->throttler = new Throttler( - new RandomStrategy() + new RandomStrategy(), ); } diff --git a/benchmarks/RoundRobinBench.php b/benchmarks/RoundRobinBench.php index 2505853..076c330 100644 --- a/benchmarks/RoundRobinBench.php +++ b/benchmarks/RoundRobinBench.php @@ -27,7 +27,7 @@ public function __construct() $this->throttler = new Throttler( new RoundRobinStrategy( - new InMemoryCounter() + new InMemoryCounter(start: 0), ) ); } diff --git a/benchmarks/SmoothWeightedRoundRobinBench.php b/benchmarks/SmoothWeightedRoundRobinBench.php index 9bb90f1..09985d0 100644 --- a/benchmarks/SmoothWeightedRoundRobinBench.php +++ b/benchmarks/SmoothWeightedRoundRobinBench.php @@ -25,7 +25,7 @@ public function __construct() ]); $this->throttler = new Throttler( - new SmoothWeightedRoundRobinStrategy() + new SmoothWeightedRoundRobinStrategy(), ); } diff --git a/benchmarks/WeightedRandomBench.php b/benchmarks/WeightedRandomBench.php index 96d276e..ba40fdc 100644 --- a/benchmarks/WeightedRandomBench.php +++ b/benchmarks/WeightedRandomBench.php @@ -25,7 +25,7 @@ public function __construct() ]); $this->throttler = new Throttler( - new WeightedRandomStrategy() + new WeightedRandomStrategy(), ); } diff --git a/benchmarks/WeightedRoundRobinBench.php b/benchmarks/WeightedRoundRobinBench.php index 9d7e364..1e89879 100644 --- a/benchmarks/WeightedRoundRobinBench.php +++ b/benchmarks/WeightedRoundRobinBench.php @@ -27,7 +27,7 @@ public function __construct() $this->throttler = new Throttler( new WeightedRoundRobinStrategy( - new InMemoryCounter() + new InMemoryCounter(start: 0), ) ); }