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

Clock service and decorator #257

Merged
merged 6 commits into from
May 20, 2022
Merged

Clock service and decorator #257

merged 6 commits into from
May 20, 2022

Conversation

DanielBadura
Copy link
Member

No description provided.

@DanielBadura DanielBadura changed the base branch from 1.3.x to 2.0.x May 19, 2022 15:19
@DanielBadura DanielBadura requested a review from DavidBadura May 19, 2022 15:19
@DanielBadura DanielBadura added the enhancement New feature or request label May 19, 2022
@DanielBadura DanielBadura added this to the 2.0.0 milestone May 19, 2022
@github-actions
Copy link

github-actions bot commented May 19, 2022

Hello 👋

here is the most recent benchmark result:

LoadEventsWithSnapshotsBench
============================

Average iteration times by variant

267.3μs   │ ██ 
233.9μs   │ ██ 
200.5μs   │ ██ 
167.1μs   │ ██ 
133.7μs   │ ██ 
100.2μs   │ ██ 
66.8μs    │ ██ 
33.4μs    │ ██ 
          └────
            1  

[█ <current>] [█ base] 

1: benchLoadEvents 

Memory by variant

14.0mb    │ ██ 
12.2mb    │ ██ 
10.5mb    │ ██ 
8.7mb     │ ██ 
7.0mb     │ ██ 
5.2mb     │ ██ 
3.5mb     │ ██ 
1.7mb     │ ██ 
          └────
            1  

[█ <current>] [█ base] 

1: benchLoadEvents 

+--------------------+--------------------+--------------------+-----------------+------------+
|                    | time (kde mode)                         | memory                       |
+--------------------+--------------------+--------------------+-----------------+------------+
| subject            | Tag: <current>     | Tag: base          | Tag: <current>  | Tag: base  |
+--------------------+--------------------+--------------------+-----------------+------------+
| benchLoadEvents () | 264.305μs (±0.91%) | 267.303μs (±0.49%) | 13.995mb        | 13.992mb   |
+--------------------+--------------------+--------------------+-----------------+------------+

LoadEventsBench
===============

Average iteration times by variant

110.3ms   │ ██ 
96.5ms    │ ██ 
82.7ms    │ ██ 
68.9ms    │ ██ 
55.1ms    │ ██ 
41.4ms    │ ██ 
27.6ms    │ ██ 
13.8ms    │ ██ 
          └────
            1  

[█ <current>] [█ base] 

1: benchLoadEvents 

Memory by variant

20.3mb    │ ██ 
17.8mb    │ ██ 
15.3mb    │ ██ 
12.7mb    │ ██ 
10.2mb    │ ██ 
7.6mb     │ ██ 
5.1mb     │ ██ 
2.5mb     │ ██ 
          └────
            1  

[█ <current>] [█ base] 

1: benchLoadEvents 

+--------------------+--------------------+--------------------+-----------------+------------+
|                    | time (kde mode)                         | memory                       |
+--------------------+--------------------+--------------------+-----------------+------------+
| subject            | Tag: <current>     | Tag: base          | Tag: <current>  | Tag: base  |
+--------------------+--------------------+--------------------+-----------------+------------+
| benchLoadEvents () | 110.289ms (±1.04%) | 109.039ms (±0.47%) | 20.334mb        | 20.331mb   |
+--------------------+--------------------+--------------------+-----------------+------------+

WriteEventsBench
================

Average iteration times by variant

41.2ms    │    █▇ 
36.1ms    │    ██ 
30.9ms    │    ██ 
25.8ms    │    ██ 
20.6ms    │    ██ 
15.5ms    │    ██ 
10.3ms    │ ▅  ██ 
5.2ms     │ █▃ ██ 
          └───────
            1  2  

[█ <current>] [█ base] 

1: benchSaveOneEvent    2: benchSaveAfterThous᠁ 

Memory by variant

7.1mb     │ ▂▂ ██ 
6.2mb     │ ██ ██ 
5.3mb     │ ██ ██ 
4.4mb     │ ██ ██ 
3.5mb     │ ██ ██ 
2.7mb     │ ██ ██ 
1.8mb     │ ██ ██ 
887.3kb   │ ██ ██ 
          └───────
            1  2  

[█ <current>] [█ base] 

1: benchSaveOneEvent    2: benchSaveAfterThous᠁ 

+---------------------------------+-------------------+-------------------+-----------------+------------+
|                                 | time (kde mode)                       | memory                       |
+---------------------------------+-------------------+-------------------+-----------------+------------+
| subject                         | Tag: <current>    | Tag: base         | Tag: <current>  | Tag: base  |
+---------------------------------+-------------------+-------------------+-----------------+------------+
| benchSaveOneEvent ()            | 8.190ms (±87.37%) | 1.310ms (±5.44%)  | 6.403mb         | 6.400mb    |
| benchSaveAfterThousandEvents () | 41.238ms (±0.38%) | 40.370ms (±0.66%) | 7.099mb         | 7.096mb    |
+---------------------------------+-------------------+-------------------+-----------------+------------+

This comment gets update everytime a new commit comes in!

src/Clock/Clock.php Outdated Show resolved Hide resolved
src/Clock/FreezeClock.php Outdated Show resolved Hide resolved
@DanielBadura DanielBadura force-pushed the clock-service-and-decorator branch from 064ada5 to 5fe169d Compare May 20, 2022 13:11
@DanielBadura DanielBadura linked an issue May 20, 2022 that may be closed by this pull request
@DavidBadura DavidBadura merged commit db66c65 into 2.0.x May 20, 2022
@DavidBadura DavidBadura deleted the clock-service-and-decorator branch May 20, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clock service
2 participants