Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions benchmarks/ArraySingleBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ public function benchDiff(): void
ArraySingle::diff($this->data, $this->needles, true);
}

public function benchDuplicates(): void
{
ArraySingle::duplicates($this->data);
}

public function benchIntersect(): void
{
ArraySingle::intersect($this->data, $this->needles, true);
Expand Down Expand Up @@ -124,6 +119,11 @@ public function benchSeededShuffle(): void
ArraySingle::shuffle($this->data, 12345);
}

public function benchStrictDuplicates(): void
{
ArraySingle::duplicates($this->data, true);
}

public function benchSum(): void
{
ArraySingle::sum($this->data);
Expand Down
4 changes: 3 additions & 1 deletion benchmarks/MembershipCrossoverBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
use PhpBench\Attributes\BeforeMethods;
use PhpBench\Attributes\Iterations;
use PhpBench\Attributes\ParamProviders;
use PhpBench\Attributes\RetryThreshold;
use PhpBench\Attributes\Revs;

#[Revs(3)]
#[Iterations(5)]
#[RetryThreshold(100)]
#[BeforeMethods('setUp')]
#[ParamProviders('provideMembershipWorkloads')]
final class MembershipCrossoverBench
Expand Down Expand Up @@ -125,7 +127,7 @@ public function provideMembershipWorkloads(): array
{
$workloads = [];

foreach ([1, 2, 8, 16, 32, 64, 128, 192, 256, 512] as $size) {
foreach ([128, 192, 256, 512] as $size) {
foreach (['hit-first', 'hit-last', 'miss'] as $distribution) {
$workloads[$size . '-' . $distribution] = [
'size' => $size,
Expand Down