Add benchmark for event stream loading #31
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added benchmark test for stream loading and state re-hydration.
The test includes complete operation - opening BO session, reading event stream from ESDB, re-hydrating state.
Because of that, it can be difficult to isolate effects and interpret results.
Nevertheless, it is a very useful test to have IMO.
Regarding
3.0.0-alpha23
vs3.0.0-alpha21
- test does not show that much of a difference in total memory consumption, but this may be due to the test design. There is however a noticeable improvement in Gen1/Gen2 GC numbers in test runs where we have very long event streams (see rows for 20000 and 50000 events) -3.0.0-alpha23
test run does not show any Gen2 GC collections which is very nice.Results
BullOak.EventStore
3.0.0-alpha23BullOak.EventStore
3.0.0-alpha21