y-crdt / y-octo

CRDT implementation which is compatible with https://github.com/yjs/yjs
https://octobase.pro/
Other
187 stars 5 forks source link

test: run bench one times in test #10

Closed darkskygit closed 1 year ago

darkskygit commented 1 year ago

run bench as a test once to comfirm that the bench are work fine:

https://nexte.st/book/benchmark-integration.html

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: +0.30% :tada:

Comparison is base (6a409f0) 77.63% compared to head (3835dca) 77.94%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10 +/- ## ========================================== + Coverage 77.63% 77.94% +0.30% ========================================== Files 46 46 Lines 6809 6809 ========================================== + Hits 5286 5307 +21 + Misses 1523 1502 -21 ``` | [Flag](https://app.codecov.io/gh/toeverything/y-octo/pull/10/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [node-binding-test](https://app.codecov.io/gh/toeverything/y-octo/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | `22.17% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#carryforward-flags-in-the-pull-request-comment) to find out more. [see 3 files with indirect coverage changes](https://app.codecov.io/gh/toeverything/y-octo/pull/10/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 year ago

Benchmark Results

Linux

group                                     main                                   pr
-----                                     ----                                   --
codec/jwst decode var_int (32 bit)        1.00    377.5±8.07µs        ? ?/sec    1.00    377.4±8.67µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.01    274.3±1.45µs        ? ?/sec    1.00    272.6±1.00µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.00    278.9±1.15µs        ? ?/sec    1.00    278.9±1.46µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.01    512.2±9.97µs        ? ?/sec    1.00   508.4±10.21µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00    376.6±0.69µs        ? ?/sec    1.00    376.7±0.66µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.00    376.7±0.74µs        ? ?/sec    1.00    376.7±0.67µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.00    277.6±2.13µs        ? ?/sec    1.00    277.3±1.96µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.03    273.9±3.18µs        ? ?/sec    1.00    266.7±3.64µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.07    261.9±3.21µs        ? ?/sec    1.00    244.6±8.26µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.00    383.7±0.37µs        ? ?/sec    1.00    383.5±0.49µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.04    294.9±5.59µs        ? ?/sec    1.00    283.3±3.54µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00    306.2±0.69µs        ? ?/sec    1.00    305.9±0.66µs        ? ?/sec
ops/array/jwst/insert                     1.00    393.9±7.82µs        ? ?/sec    1.00    395.9±9.60µs        ? ?/sec
ops/array/jwst/insert range               1.00    527.4±0.22µs        ? ?/sec    1.00    529.6±1.67µs        ? ?/sec
ops/array/jwst/remove                     1.00    277.1±2.55µs        ? ?/sec    1.00    276.9±1.87µs        ? ?/sec
ops/array/yrs/insert                      1.00     86.6±0.21µs        ? ?/sec    1.01     87.6±0.03µs        ? ?/sec
ops/array/yrs/insert range                1.00    110.9±0.53µs        ? ?/sec    1.02    112.7±0.77µs        ? ?/sec
ops/array/yrs/remove                      1.00     97.8±0.16µs        ? ?/sec    1.01     98.3±0.16µs        ? ?/sec
ops/text/jwst/insert                      1.00    146.0±0.08µs        ? ?/sec    1.01    147.1±0.10µs        ? ?/sec
ops/text/jwst/remove                      1.00      3.2±0.00µs        ? ?/sec    1.00      3.2±0.01µs        ? ?/sec
ops/text/yrs/insert                       1.00     42.5±0.05µs        ? ?/sec    1.00     42.5±0.28µs        ? ?/sec
ops/text/yrs/remove                       1.00      2.4±0.02µs        ? ?/sec    1.01      2.5±0.00µs        ? ?/sec
update/parse with jwst/basic.bin          1.00     65.9±0.20µs    82.9 MB/sec    1.03     67.7±0.03µs    80.7 MB/sec
update/parse with jwst/database.bin       1.00     53.4±0.37µs    62.1 MB/sec    1.03     55.0±0.77µs    60.2 MB/sec
update/parse with jwst/large.bin          1.01      4.9±0.03ms    46.3 MB/sec    1.00      4.9±0.02ms    46.7 MB/sec
update/parse with jwst/with-subdoc.bin    1.00      6.2±0.01µs   113.5 MB/sec    1.07      6.6±0.00µs   106.1 MB/sec
update/parse with yrs/basic.bin           1.01     42.0±0.12µs   129.9 MB/sec    1.00     41.7±0.03µs   131.0 MB/sec
update/parse with yrs/database.bin        1.01     33.9±0.19µs    97.6 MB/sec    1.00     33.6±0.02µs    98.7 MB/sec
update/parse with yrs/large.bin           1.00      3.1±0.02ms    74.6 MB/sec    1.00      3.0±0.00ms    75.0 MB/sec
update/parse with yrs/with-subdoc.bin     1.10      6.0±0.02µs   116.0 MB/sec    1.00      5.5±0.00µs   127.2 MB/sec

Windows

group                                     main                                   pr
-----                                     ----                                   --
codec/jwst decode var_int (32 bit)        1.01    470.8±6.94µs        ? ?/sec    1.00    468.1±5.25µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.00    390.4±5.36µs        ? ?/sec    1.00    388.7±4.40µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.00    484.9±6.28µs        ? ?/sec    1.00    483.9±6.23µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.01    495.4±6.22µs        ? ?/sec    1.00    492.4±6.82µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00    327.2±8.74µs        ? ?/sec    1.00   327.0±11.96µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.02   330.4±10.37µs        ? ?/sec    1.00    324.0±5.87µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.01    433.4±6.27µs        ? ?/sec    1.00    430.5±5.42µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.00    355.6±4.59µs        ? ?/sec    1.00    354.8±3.63µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.00    243.6±3.57µs        ? ?/sec    1.00    243.0±3.44µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.01   608.0±14.08µs        ? ?/sec    1.00    601.6±8.60µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.02   401.7±10.75µs        ? ?/sec    1.00   395.5±10.75µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00    389.7±5.37µs        ? ?/sec    1.00    388.4±6.51µs        ? ?/sec
ops/array/jwst/insert                     1.00    416.3±4.78µs        ? ?/sec    1.00    416.0±3.95µs        ? ?/sec
ops/array/jwst/insert range               1.00    550.3±5.74µs        ? ?/sec    1.00    549.8±6.17µs        ? ?/sec
ops/array/jwst/remove                     1.00    272.8±5.16µs        ? ?/sec    1.00    273.0±5.17µs        ? ?/sec
ops/array/yrs/insert                      1.05    113.0±1.19µs        ? ?/sec    1.00    108.1±1.00µs        ? ?/sec
ops/array/yrs/insert range                1.00    150.7±1.92µs        ? ?/sec    1.00    150.8±1.70µs        ? ?/sec
ops/array/yrs/remove                      1.00    160.0±2.52µs        ? ?/sec    1.01    162.0±1.79µs        ? ?/sec
ops/text/jwst/insert                      1.00    183.8±2.37µs        ? ?/sec    1.00    183.8±1.94µs        ? ?/sec
ops/text/jwst/remove                      1.00      4.5±0.03µs        ? ?/sec    1.02      4.6±0.07µs        ? ?/sec
ops/text/yrs/insert                       1.05     48.7±0.43µs        ? ?/sec    1.00     46.5±0.55µs        ? ?/sec
ops/text/yrs/remove                       1.00      4.7±0.06µs        ? ?/sec    1.01      4.7±0.03µs        ? ?/sec
update/parse with jwst/basic.bin          1.01     98.5±1.41µs    55.5 MB/sec    1.00     97.6±0.83µs    56.0 MB/sec
update/parse with jwst/database.bin       1.00     76.0±0.80µs    43.6 MB/sec    1.01     76.4±0.67µs    43.4 MB/sec
update/parse with jwst/large.bin          1.00      4.6±0.10ms    50.0 MB/sec    1.01      4.6±0.11ms    49.3 MB/sec
update/parse with jwst/with-subdoc.bin    1.00     14.9±0.11µs    46.8 MB/sec    1.00     14.9±0.24µs    46.9 MB/sec
update/parse with yrs/basic.bin           1.00     67.3±0.54µs    81.1 MB/sec    1.02     68.6±1.25µs    79.6 MB/sec
update/parse with yrs/database.bin        1.00     52.1±0.41µs    63.6 MB/sec    1.04     54.1±0.40µs    61.2 MB/sec
update/parse with yrs/large.bin           1.00      3.1±0.08ms    73.4 MB/sec    1.01      3.1±0.13ms    72.6 MB/sec
update/parse with yrs/with-subdoc.bin     1.01     11.5±0.09µs    60.9 MB/sec    1.00     11.4±0.10µs    61.2 MB/sec