Skip to content

Commit

Permalink
Need to do some fixes to the entity context benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Jan 24, 2024
1 parent b30774f commit 03f0542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public class EntityContextBenchmarks : ABenchmark
typeof(RocksDBEventStore<BinaryEventSerializer>))]
public Type EventStoreType { get; set; } = typeof(InMemoryEventStore<BinaryEventSerializer>);

[Params(100, 1000)]
[Params(100, 1000, 10000)]
public int EventCount { get; set; }

[Params(100, 1000)]
[Params(100, 1000, 5000)]
public int EntityCount { get; set; }

[GlobalSetup]
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/NexusMods.EventSourcing.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
benchmarks.Setup();

var sw = Stopwatch.StartNew();
for (var i = 0; i < 100; i++)
for (var i = 0; i < 10000; i++)
{
benchmarks.LoadAllEntities();
}
Console.WriteLine("Elapsed: " + sw.Elapsed.TotalSeconds);

#else
BenchmarkRunner.Run<WriteBenchmarks>();
BenchmarkRunner.Run<EntityContextBenchmarks>();
#endif

/*
Expand Down

0 comments on commit 03f0542

Please sign in to comment.