Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Mar 15, 2024
1 parent 9fb1fea commit f58ac27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Benchmark/SimpleSetupBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function setUp(): void
$profile = Profile::create($this->id, 'Peter');

for ($i = 0; $i < 10_000; $i++) {
$profile->changeName('Peter');
$profile->changeName('Peter ' . $i);
}

$this->repository->save($profile);
Expand All @@ -83,7 +83,7 @@ public function benchSave10000Events(): void
$profile = Profile::create(ProfileId::v7(), 'Peter');

for ($i = 1; $i < 10_000; $i++) {
$profile->changeName('Peter');
$profile->changeName('Peter ' . $i);
}

$this->repository->save($profile);
Expand All @@ -93,7 +93,7 @@ public function benchSave10000Events(): void
public function benchSave10000Aggregates(): void
{
for ($i = 1; $i < 10_000; $i++) {
$profile = Profile::create(ProfileId::v7(), 'Peter');
$profile = Profile::create(ProfileId::v7(), 'Peter ' . $i);
$this->repository->save($profile);
}
}
Expand All @@ -103,7 +103,7 @@ public function benchSave10000AggregatesTransaction(): void
{
$this->store->transactional(function (): void {
for ($i = 1; $i < 10_000; $i++) {
$profile = Profile::create(ProfileId::v7(), 'Peter');
$profile = Profile::create(ProfileId::v7(), 'Peter ' . $i);
$this->repository->save($profile);
}
});
Expand Down

0 comments on commit f58ac27

Please sign in to comment.