Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PoC for testing utilities: AggregateTestCase, SubscriberUtilities #670

Draft
wants to merge 4 commits into
base: 3.8.x
Choose a base branch
from

Conversation

DanielBadura
Copy link
Member

@DanielBadura DanielBadura commented Jan 2, 2025

This is just a PoC. This will probably extracted into a dev dependency.

@DanielBadura DanielBadura linked an issue Jan 2, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 2, 2025

Hello 👋

here is the most recent benchmark result:

SimpleSetupBench
================

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad1Event ()                     | 972.900μs (±0.00%) | 1.069ms (±0.00%)   | -9.02%    | 34.629mb        | 34.637mb   | -0.02%      |
| benchLoad10000Events ()                | 48.178ms (±0.00%)  | 48.993ms (±0.00%)  | -1.67%    | 34.629mb        | 34.637mb   | -0.02%      |
| benchSave1Event ()                     | 1.103ms (±0.00%)   | 1.319ms (±0.00%)   | -16.36%   | 34.128mb        | 34.128mb   | 0.00%       |
| benchSave10000Events ()                | 217.671ms (±0.00%) | 231.751ms (±0.00%) | -6.08%    | 34.128mb        | 34.128mb   | 0.00%       |
| benchSave10000Aggregates ()            | 9.791s (±0.00%)    | 10.374s (±0.00%)   | -5.63%    | 34.128mb        | 34.128mb   | 0.00%       |
| benchSave10000AggregatesTransaction () | 4.856s (±0.00%)    | 4.886s (±0.00%)    | -0.62%    | 34.128mb        | 34.128mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SnapshotsBench
==============

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad10000EventsMissingSnapshot () | 49.890ms (±0.00%)  | 48.356ms (±0.00%)  | +3.17%    | 34.132mb        | 34.132mb   | 0.00%       |
| benchLoad10000Events ()                | 986.900μs (±0.00%) | 976.400μs (±0.00%) | +1.08%    | 34.132mb        | 34.132mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SubscriptionEngineBatchBench
============================

+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+
|                           | time (kde mode)                                   | memory                                     |
+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+
| subject                   | Tag: <current>    | Tag: base         | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+
| benchHandle10000Events () | 75.675ms (±0.00%) | 73.552ms (±0.00%) | +2.89%    | 34.596mb        | 34.596mb   | 0.00%       |
+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+

SubscriptionEngineBench
=======================

+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+
|                           | time (kde mode)                               | memory                                     |
+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+
| subject                   | Tag: <current>  | Tag: base       | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+
| benchHandle10000Events () | 3.151s (±0.00%) | 3.167s (±0.00%) | -0.51%    | 46.745mb        | 46.745mb   | 0.00%       |
+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+

PersonalDataBench
=================

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad1Event ()                     | 901.100μs (±0.00%) | 923.200μs (±0.00%) | -2.39%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchLoad10000Events ()                | 83.077ms (±0.00%)  | 85.769ms (±0.00%)  | -3.14%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchSave1Event ()                     | 1.522ms (±0.00%)   | 1.510ms (±0.00%)   | +0.80%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchSave10000Events ()                | 244.944ms (±0.00%) | 246.878ms (±0.00%) | -0.78%    | 35.259mb        | 35.259mb   | 0.00%       |
| benchSave10000Aggregates ()            | 13.444s (±0.00%)   | 12.904s (±0.00%)   | +4.18%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchSave10000AggregatesTransaction () | 9.069s (±0.00%)    | 9.009s (±0.00%)    | +0.67%    | 35.759mb        | 35.759mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SimpleSetupStreamStoreBench
===========================

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad1Event ()                     | 950.600μs (±0.00%) | 953.900μs (±0.00%) | -0.35%    | 35.155mb        | 35.155mb   | 0.00%       |
| benchLoad10000Events ()                | 57.436ms (±0.00%)  | 55.664ms (±0.00%)  | +3.18%    | 35.155mb        | 35.155mb   | 0.00%       |
| benchSave1Event ()                     | 1.038ms (±0.00%)   | 1.537ms (±0.00%)   | -32.46%   | 35.155mb        | 35.155mb   | 0.00%       |
| benchSave10000Events ()                | 296.582ms (±0.00%) | 295.260ms (±0.00%) | +0.45%    | 35.155mb        | 35.155mb   | 0.00%       |
| benchSave10000Aggregates ()            | 9.512s (±0.00%)    | 9.568s (±0.00%)    | -0.59%    | 35.155mb        | 35.155mb   | 0.00%       |
| benchSave10000AggregatesTransaction () | 5.119s (±0.00%)    | 5.087s (±0.00%)    | +0.63%    | 35.155mb        | 35.155mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SplitStreamBench
================

+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                         | time (kde mode)                                     | memory                                     |
+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                 | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad10000Events () | 4.374ms (±0.00%)   | 4.406ms (±0.00%)   | -0.71%    | 37.434mb        | 37.434mb   | 0.00%       |
| benchSave10000Events () | 341.129ms (±0.00%) | 339.665ms (±0.00%) | +0.43%    | 37.506mb        | 37.506mb   | 0.00%       |
+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

This comment gets update everytime a new commit comes in!

@DanielBadura DanielBadura changed the title Add PoC for testing utilities: AggregateTestCase Add PoC for testing utilities: AggregateTestCase, SubscriberUtilities Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Testing Utilities
1 participant