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

chore: sync octobase's update #32

Closed darkskygit closed 11 months ago

codecov-commenter commented 11 months ago

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (f793f8c) 36.92% compared to head (d236021) 77.75%.

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #32 +/- ## =========================================== + Coverage 36.92% 77.75% +40.82% =========================================== Files 1 49 +48 Lines 260 7646 +7386 =========================================== + Hits 96 5945 +5849 - Misses 164 1701 +1537 ``` | [Flag](https://app.codecov.io/gh/y-crdt/y-octo/pull/32/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/32/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](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [y-octo/src/doc/document.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvZG9jdW1lbnQucnM=) | `77.12% <100.00%> (ø)` | | | [y-octo/src/doc/codec/item.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvY29kZWMvaXRlbS5ycw==) | `78.00% <57.14%> (ø)` | | | [y-octo/src/doc/publisher.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvcHVibGlzaGVyLnJz) | `87.84% <73.33%> (ø)` | | | [y-octo/src/doc/common/range.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvY29tbW9uL3JhbmdlLnJz) | `92.72% <94.94%> (ø)` | | | [y-octo/src/doc/store.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2Mvc3RvcmUucnM=) | `86.40% <60.86%> (ø)` | | | [y-octo/src/doc/history.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/32?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvaGlzdG9yeS5ycw==) | `80.46% <59.09%> (ø)` | | ... and [42 files with indirect coverage changes](https://app.codecov.io/gh/y-crdt/y-octo/pull/32/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) | 491.0±0.22µs | 461.3±2.00µs | **-6.05%** | | codec/jwst decode var_uint (32 bit) | 446.7±0.80µs | 446.5±0.12µs | **-0.04%** | | codec/jwst decode var_uint (64 bit) | 320.5±2.13µs | 320.3±0.13µs | **-0.06%** | | codec/jwst encode var_int (32 bit) | 462.0±4.75µs | 466.6±5.51µs | **+1.00%** | | codec/jwst encode var_uint (32 bit) | 322.9±2.48µs | 293.4±1.20µs | **-9.14%** | | codec/jwst encode var_uint (64 bit) | 323.1±1.97µs | 293.2±0.53µs | **-9.25%** | | codec/lib0 decode var_int (64 bit) | 279.6±0.54µs | 396.3±1.43µs | **+41.74%** | | codec/lib0 decode var_uint (32 bit) | 351.6±0.17µs | 240.3±0.11µs | **-31.66%** | | codec/lib0 decode var_uint (64 bit) | 357.2±0.17µs | 240.9±0.08µs | **-32.56%** | | codec/lib0 encode var_int (64 bit) | 455.4±11.86µs | 445.6±10.12µs | -2.15% | | codec/lib0 encode var_uint (32 bit) | 365.4±7.12µs | 368.3±12.49µs | +0.79% | | codec/lib0 encode var_uint (64 bit) | 402.5±5.73µs | 380.0±0.39µs | **-5.59%** | | ops/array/jwst/insert | 250.0±3.28µs | 250.3±0.45µs | **+0.12%** | | ops/array/jwst/insert range | 355.3±0.24µs | 365.9±0.15µs | **+2.98%** | | ops/array/jwst/remove | 159.9±0.21µs | 158.5±0.44µs | **-0.88%** | | ops/array/yrs/insert | 80.2±0.36µs | 78.4±0.08µs | **-2.24%** | | ops/array/yrs/insert range | 107.3±0.37µs | 107.4±0.23µs | **+0.09%** | | ops/array/yrs/remove | 97.2±2.51µs | 100.3±0.26µs | **+3.19%** | | ops/map/jwst/get | 463.5±2.71ns | 462.1±4.71ns | -0.30% | | ops/map/jwst/insert | 5.7±0.02µs | 5.7±0.01µs | -0.00% | | ops/map/jwst/remove | 7.2±0.01µs | 7.2±0.03µs | -0.00% | | ops/map/yrs/get | 312.8±2.03ns | 308.4±3.53ns | **-1.41%** | | ops/map/yrs/insert | 5.0±0.01µs | 5.2±0.01µs | **+4.00%** | | ops/map/yrs/remove | 6.5±0.02µs | 6.8±0.01µs | **+4.62%** | | ops/text/jwst/insert | 129.0±0.33µs | 131.7±0.90µs | **+2.09%** | | ops/text/jwst/remove | 3.2±0.00µs | 3.4±0.00µs | **+6.25%** | | ops/text/yrs/insert | 37.7±0.14µs | 38.3±0.13µs | **+1.59%** | | ops/text/yrs/remove | 2.3±0.01µs | 2.2±0.00µs | **-4.35%** | | update/parse with jwst/basic.bin | 58.4±0.02µs | 59.0±0.36µs | **+1.03%** | | update/parse with jwst/database.bin | 40.0±0.08µs | 40.3±0.08µs | **+0.75%** | | update/parse with jwst/large.bin | 4.5±0.02ms | 4.5±0.02ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 8.3±0.01µs | 8.3±0.02µs | -0.00% | | update/parse with yrs/basic.bin | 44.2±0.04µs | 45.5±0.07µs | **+2.94%** | | update/parse with yrs/database.bin | 30.4±0.17µs | 30.8±0.54µs | **+1.32%** | | update/parse with yrs/large.bin | 3.3±0.01ms | 3.3±0.01ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 6.4±0.01µs | 6.6±0.01µs | **+3.12%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 471.5±6.62µs | 468.7±5.88µs | -0.59% | | codec/jwst decode var_uint (32 bit) | 389.7±5.77µs | 434.4±7.26µs | **+11.47%** | | codec/jwst decode var_uint (64 bit) | 485.4±6.98µs | 323.0±4.11µs | **-33.46%** | | codec/jwst encode var_int (32 bit) | 433.5±7.40µs | 489.8±6.63µs | **+12.99%** | | codec/jwst encode var_uint (32 bit) | 319.7±6.23µs | 393.4±5.26µs | **+23.05%** | | codec/jwst encode var_uint (64 bit) | 319.7±5.97µs | 386.0±4.37µs | **+20.74%** | | codec/lib0 decode var_int (64 bit) | 431.1±5.52µs | 431.4±5.99µs | +0.07% | | codec/lib0 decode var_uint (32 bit) | 243.3±3.44µs | 354.9±4.53µs | **+45.87%** | | codec/lib0 decode var_uint (64 bit) | 391.5±5.93µs | 354.9±5.96µs | **-9.35%** | | codec/lib0 encode var_int (64 bit) | 582.3±8.93µs | 596.8±11.72µs | **+2.49%** | | codec/lib0 encode var_uint (32 bit) | 399.9±7.26µs | 398.1±4.59µs | -0.45% | | codec/lib0 encode var_uint (64 bit) | 413.3±6.81µs | 411.2±6.80µs | -0.51% | | ops/array/jwst/insert | 287.1±4.09µs | 287.4±5.92µs | +0.10% | | ops/array/jwst/insert range | 399.2±3.35µs | 397.7±3.54µs | -0.38% | | ops/array/jwst/remove | 169.0±1.63µs | 166.7±2.48µs | **-1.36%** | | ops/array/yrs/insert | 112.1±1.14µs | 110.9±1.06µs | **-1.07%** | | ops/array/yrs/insert range | 151.0±1.78µs | 150.3±1.55µs | -0.46% | | ops/array/yrs/remove | 158.5±1.88µs | 159.2±1.83µs | +0.44% | | ops/map/jwst/get | 503.1±20.44ns | 497.2±6.57ns | -1.17% | | ops/map/jwst/insert | 10.3±0.16µs | 10.3±0.12µs | -0.00% | | ops/map/jwst/remove | 9.1±0.08µs | 9.1±0.09µs | -0.00% | | ops/map/yrs/get | 355.0±6.55ns | 355.2±7.78ns | +0.06% | | ops/map/yrs/insert | 8.1±0.07µs | 8.0±0.07µs | **-1.23%** | | ops/map/yrs/remove | 10.5±0.14µs | 10.4±0.12µs | **-0.95%** | | ops/text/jwst/insert | 160.5±1.74µs | 161.0±2.24µs | +0.31% | | ops/text/jwst/remove | 3.7±0.05µs | 3.7±0.03µs | -0.00% | | ops/text/yrs/insert | 47.3±0.73µs | 51.1±0.37µs | **+8.03%** | | ops/text/yrs/remove | 3.8±0.04µs | 3.9±0.03µs | **+2.63%** | | update/parse with jwst/basic.bin | 87.0±1.07µs | 84.1±1.42µs | **-3.33%** | | update/parse with jwst/database.bin | 65.3±0.60µs | 63.5±0.85µs | **-2.76%** | | update/parse with jwst/large.bin | 4.0±0.16ms | 3.9±0.19ms | **-2.50%** | | update/parse with jwst/with-subdoc.bin | 11.8±0.10µs | 11.5±0.09µs | **-2.54%** | | update/parse with yrs/basic.bin | 68.3±0.60µs | 68.8±0.66µs | **+0.73%** | | update/parse with yrs/database.bin | 53.5±0.65µs | 53.4±0.52µs | **-0.19%** | | update/parse with yrs/large.bin | 3.3±0.14ms | 3.3±0.19ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 12.2±0.12µs | 11.5±0.09µs | **-5.74%** |