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

feat: set api with dynamic type #29

Closed darkskygit closed 11 months ago

codecov-commenter commented 11 months ago

Codecov Report

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

Comparison is base (de74953) 77.58% compared to head (0b17891) 77.67%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #29 +/- ## ========================================== + Coverage 77.58% 77.67% +0.09% ========================================== Files 48 48 Lines 7424 7423 -1 ========================================== + Hits 5760 5766 +6 + Misses 1664 1657 -7 ``` | [Flag](https://app.codecov.io/gh/y-crdt/y-octo/pull/29/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [node-binding-test](https://app.codecov.io/gh/y-crdt/y-octo/pull/29/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `36.92% <ø> (ø)` | | 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=None#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/y-crdt/y-octo/pull/29?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [y-octo-node/src/array.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/29?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLW5vZGUvc3JjL2FycmF5LnJz) | `13.63% <0.00%> (-0.83%)` | :arrow_down: | | [y-octo-node/src/map.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/29?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLW5vZGUvc3JjL21hcC5ycw==) | `17.14% <0.00%> (+1.35%)` | :arrow_up: | | [y-octo-node/src/utils.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/29?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLW5vZGUvc3JjL3V0aWxzLnJz) | `0.00% <ø> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/y-crdt/y-octo/pull/29/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

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

github-actions[bot] commented 11 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 553.5±1.39µs | 553.1±2.45µs | -0.07% | | codec/jwst decode var_uint (32 bit) | 567.8±1.13µs | 568.1±3.05µs | +0.05% | | codec/jwst decode var_uint (64 bit) | 384.6±1.29µs | 383.2±1.93µs | **-0.36%** | | codec/jwst encode var_int (32 bit) | 569.7±11.57µs | 552.4±6.47µs | **-3.04%** | | codec/jwst encode var_uint (32 bit) | 354.0±2.32µs | 348.4±3.57µs | **-1.58%** | | codec/jwst encode var_uint (64 bit) | 355.0±1.63µs | 351.6±2.12µs | **-0.96%** | | codec/lib0 decode var_int (64 bit) | 474.9±1.50µs | 474.4±2.26µs | -0.11% | | codec/lib0 decode var_uint (32 bit) | 288.4±0.28µs | 287.1±1.80µs | **-0.45%** | | codec/lib0 decode var_uint (64 bit) | 288.5±0.70µs | 287.5±1.46µs | **-0.35%** | | codec/lib0 encode var_int (64 bit) | 540.4±11.07µs | 547.1±8.08µs | +1.24% | | codec/lib0 encode var_uint (32 bit) | 475.3±4.09µs | 476.8±4.60µs | +0.32% | | codec/lib0 encode var_uint (64 bit) | 342.3±0.26µs | 341.5±1.12µs | **-0.23%** | | ops/array/jwst/insert | 299.7±1.70µs | 299.0±0.69µs | **-0.23%** | | ops/array/jwst/insert range | 428.0±0.93µs | 427.6±0.54µs | **-0.09%** | | ops/array/jwst/remove | 190.7±0.28µs | 190.7±0.91µs | -0.00% | | ops/array/yrs/insert | 100.9±0.46µs | 106.8±0.42µs | **+5.85%** | | ops/array/yrs/insert range | 131.1±0.20µs | 130.8±0.66µs | **-0.23%** | | ops/array/yrs/remove | 118.7±0.61µs | 119.9±0.38µs | **+1.01%** | | ops/text/jwst/insert | 154.4±0.58µs | 154.1±0.51µs | **-0.19%** | | ops/text/jwst/remove | 3.7±0.01µs | 3.7±0.01µs | -0.00% | | ops/text/yrs/insert | 47.9±0.28µs | 47.7±0.10µs | **-0.42%** | | ops/text/yrs/remove | 2.9±0.02µs | 2.9±0.00µs | -0.00% | | update/parse with jwst/basic.bin | 70.0±0.13µs | 69.7±0.21µs | **-0.43%** | | update/parse with jwst/database.bin | 56.9±0.20µs | 57.0±0.21µs | **+0.18%** | | update/parse with jwst/large.bin | 5.3±0.05ms | 5.3±0.05ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 7.2±0.06µs | 7.3±0.05µs | **+1.39%** | | update/parse with yrs/basic.bin | 54.5±0.08µs | 54.0±0.15µs | **-0.92%** | | update/parse with yrs/database.bin | 43.2±0.26µs | 43.2±0.19µs | -0.00% | | update/parse with yrs/large.bin | 3.9±0.02ms | 3.9±0.03ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 7.8±0.04µs | 8.0±0.03µs | **+2.56%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 479.4±31.31µs | 463.5±23.75µs | -3.32% | | codec/jwst decode var_uint (32 bit) | 456.5±74.21µs | 402.3±18.89µs | **-11.87%** | | codec/jwst decode var_uint (64 bit) | 437.8±52.41µs | 421.1±24.58µs | -3.81% | | codec/jwst encode var_int (32 bit) | 574.8±34.15µs | 560.1±29.28µs | -2.56% | | codec/jwst encode var_uint (32 bit) | 394.6±32.08µs | 376.8±16.62µs | **-4.51%** | | codec/jwst encode var_uint (64 bit) | 457.6±89.29µs | 378.4±19.83µs | **-17.31%** | | codec/lib0 decode var_int (64 bit) | 381.4±18.51µs | 372.8±17.82µs | -2.25% | | codec/lib0 decode var_uint (32 bit) | 336.1±16.46µs | 328.5±22.57µs | -2.26% | | codec/lib0 decode var_uint (64 bit) | 324.3±18.12µs | 329.0±15.89µs | +1.45% | | codec/lib0 encode var_int (64 bit) | 565.3±37.28µs | 539.5±29.69µs | -4.56% | | codec/lib0 encode var_uint (32 bit) | 397.1±15.82µs | 368.8±20.37µs | **-7.13%** | | codec/lib0 encode var_uint (64 bit) | 407.1±30.14µs | 371.7±18.96µs | **-8.70%** | | ops/array/jwst/insert | 396.6±27.08µs | 398.5±22.06µs | +0.48% | | ops/array/jwst/insert range | 516.9±22.39µs | 526.9±25.06µs | +1.93% | | ops/array/jwst/remove | 220.6±10.07µs | 226.9±10.13µs | +2.86% | | ops/array/yrs/insert | 141.8±6.00µs | 149.4±7.42µs | **+5.36%** | | ops/array/yrs/insert range | 199.5±9.52µs | 195.3±7.38µs | -2.11% | | ops/array/yrs/remove | 209.5±8.11µs | 217.3±10.90µs | +3.72% | | ops/text/jwst/insert | 217.5±9.40µs | 216.6±10.38µs | -0.41% | | ops/text/jwst/remove | 5.2±0.21µs | 6.5±0.61µs | **+25.00%** | | ops/text/yrs/insert | 64.3±3.13µs | 66.4±4.51µs | +3.27% | | ops/text/yrs/remove | 4.8±0.13µs | 6.0±0.34µs | **+25.00%** | | update/parse with jwst/basic.bin | 115.2±5.52µs | 110.3±4.42µs | **-4.25%** | | update/parse with jwst/database.bin | 88.7±5.30µs | 92.3±8.83µs | +4.06% | | update/parse with jwst/large.bin | 6.1±0.34ms | 6.3±0.45ms | **+3.28%** | | update/parse with jwst/with-subdoc.bin | 16.1±0.49µs | 16.8±0.95µs | **+4.35%** | | update/parse with yrs/basic.bin | 89.3±4.78µs | 93.2±5.87µs | +4.37% | | update/parse with yrs/database.bin | 70.7±3.15µs | 70.7±4.45µs | -0.00% | | update/parse with yrs/large.bin | 4.6±0.28ms | 4.4±0.27ms | **-4.35%** | | update/parse with yrs/with-subdoc.bin | 15.3±0.52µs | 16.4±1.26µs | **+7.19%** |