Skip to content

Commit

Permalink
add more benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Dec 15, 2023
1 parent 320a4e3 commit 16fef9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tests/Benchmark/SimpleSetupBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,13 @@ public function benchSave10000Events(): void

$this->repository->save($profile);
}

#[Bench\Revs(1)]
public function benchSave10000Aggregates(): void
{
for ($i = 1; $i < 10_000; $i++) {
$profile = Profile::create(ProfileId::generate(), 'Peter');
$this->repository->save($profile);
}
}
}
2 changes: 1 addition & 1 deletion tests/Benchmark/SplitStreamBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function benchLoad10000Events(): void
}

#[Bench\Revs(20)]
public function benchWrite10000Events(): void
public function benchSave10000Events(): void
{
$profile = Profile::create(ProfileId::generate(), 'Peter');

Expand Down

0 comments on commit 16fef9c

Please sign in to comment.