['candidatesCount' => $i]; } } #[Bench\ParamProviders(['provideCandidatesCount'])] #[Bench\OutputTimeUnit('milliseconds')] #[Bench\Warmup(1)] #[Bench\Iterations(3)] #[Bench\Revs(4)] public function benchKemenyYoung(array $params): void { $election = new Election; for ($i = 0; $i < $params['candidatesCount']; $i++) { $candidates[] = $election->addCandidate(); } $election->addVote($candidates); $result = $election->getResult('Kemeny–Young'); } }