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

style: clippy fix #12

Closed Brooooooklyn closed 1 year ago

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.04% :warning:

Comparison is base (867beec) 79.10% compared to head (8c435ca) 79.06%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12 +/- ## ========================================== - Coverage 79.10% 79.06% -0.04% ========================================== Files 39 39 Lines 6246 6249 +3 ========================================== Hits 4941 4941 - Misses 1305 1308 +3 ``` | [Flag](https://app.codecov.io/gh/toeverything/y-octo/pull/12/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/12/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. | [Files Changed](https://app.codecov.io/gh/toeverything/y-octo/pull/12?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [y-octo-utils/bin/bench\_result\_render.rs](https://app.codecov.io/gh/toeverything/y-octo/pull/12?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-eS1vY3RvLXV0aWxzL2Jpbi9iZW5jaF9yZXN1bHRfcmVuZGVyLnJz) | `0.00% <0.00%> (ø)` | | | [y-octo/src/doc/types/mod.rs](https://app.codecov.io/gh/toeverything/y-octo/pull/12?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-eS1vY3RvL3NyYy9kb2MvdHlwZXMvbW9kLnJz) | `57.91% <ø> (ø)` | |

: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 for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 394.5±0.61µs | 590.0±3.14µs | **+49.56%** | | codec/jwst decode var_uint (32 bit) | 496.7±8.48µs | 509.5±0.43µs | **+2.58%** | | codec/jwst decode var_uint (64 bit) | 347.2±0.31µs | 388.8±11.28µs | **+11.98%** | | codec/jwst encode var_int (32 bit) | 555.3±9.45µs | 566.4±7.50µs | **+2.00%** | | codec/jwst encode var_uint (32 bit) | 451.0±1.33µs | 382.7±6.69µs | **-15.14%** | | codec/jwst encode var_uint (64 bit) | 468.6±21.95µs | 385.7±3.75µs | **-17.69%** | | codec/lib0 decode var_int (64 bit) | 511.8±1.95µs | 337.3±5.65µs | **-34.10%** | | codec/lib0 decode var_uint (32 bit) | 315.0±0.36µs | 422.4±0.56µs | **+34.10%** | | codec/lib0 decode var_uint (64 bit) | 288.2±1.11µs | 462.9±5.12µs | **+60.62%** | | codec/lib0 encode var_int (64 bit) | 566.9±8.19µs | 604.5±5.17µs | **+6.63%** | | codec/lib0 encode var_uint (32 bit) | 432.2±4.56µs | 472.9±4.68µs | **+9.42%** | | codec/lib0 encode var_uint (64 bit) | 449.4±3.08µs | 342.6±0.21µs | **-23.77%** | | ops/array/jwst/insert | 455.7±1.82µs | 454.3±0.79µs | **-0.31%** | | ops/array/jwst/insert range | 624.5±0.75µs | 616.1±0.78µs | **-1.35%** | | ops/array/jwst/remove | 309.0±1.36µs | 311.0±0.26µs | **+0.65%** | | ops/array/yrs/insert | 104.9±0.30µs | 102.9±0.06µs | **-1.91%** | | ops/array/yrs/insert range | 136.1±1.28µs | 132.6±0.60µs | **-2.57%** | | ops/array/yrs/remove | 123.9±0.33µs | 110.5±0.51µs | **-10.82%** | | ops/text/jwst/insert | 189.7±3.02µs | 181.2±0.27µs | **-4.48%** | | ops/text/jwst/remove | 3.6±0.00µs | 3.9±0.02µs | **+8.33%** | | ops/text/yrs/insert | 53.4±0.20µs | 48.0±0.03µs | **-10.11%** | | ops/text/yrs/remove | 3.0±0.02µs | 2.8±0.00µs | **-6.67%** | | update/parse with jwst/basic.bin | 82.2±0.38µs | 84.7±0.51µs | **+3.04%** | | update/parse with jwst/database.bin | 65.8±0.87µs | 67.0±0.16µs | **+1.82%** | | update/parse with jwst/large.bin | 6.2±0.07ms | 6.2±0.04ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 7.7±0.04µs | 8.4±0.47µs | **+9.09%** | | update/parse with yrs/basic.bin | 53.0±0.14µs | 53.0±0.35µs | -0.00% | | update/parse with yrs/database.bin | 42.9±0.08µs | 43.0±0.06µs | **+0.23%** | | update/parse with yrs/large.bin | 3.8±0.03ms | 3.9±0.03ms | **+2.63%** | | update/parse with yrs/with-subdoc.bin | 6.6±0.02µs | 8.1±0.36µs | **+22.73%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 473.9±16.86µs | 468.3±6.30µs | -1.18% | | codec/jwst decode var_uint (32 bit) | 402.0±9.39µs | 401.3±16.88µs | -0.17% | | codec/jwst decode var_uint (64 bit) | 323.9±4.91µs | 323.5±3.97µs | -0.12% | | codec/jwst encode var_int (32 bit) | 504.2±17.84µs | 493.6±7.14µs | **-2.10%** | | codec/jwst encode var_uint (32 bit) | 303.2±7.94µs | 306.0±6.24µs | +0.92% | | codec/jwst encode var_uint (64 bit) | 307.5±10.98µs | 304.9±4.48µs | -0.85% | | codec/lib0 decode var_int (64 bit) | 434.2±6.42µs | 430.6±5.15µs | -0.83% | | codec/lib0 decode var_uint (32 bit) | 250.2±44.29µs | 242.9±4.21µs | **-2.92%** | | codec/lib0 decode var_uint (64 bit) | 244.2±6.85µs | 242.9±3.26µs | -0.53% | | codec/lib0 encode var_int (64 bit) | 612.4±22.67µs | 604.4±12.55µs | -1.31% | | codec/lib0 encode var_uint (32 bit) | 399.8±10.91µs | 394.8±5.23µs | -1.25% | | codec/lib0 encode var_uint (64 bit) | 389.7±10.10µs | 385.1±4.37µs | **-1.18%** | | ops/array/jwst/insert | 421.2±5.96µs | 418.6±4.80µs | -0.62% | | ops/array/jwst/insert range | 552.0±6.05µs | 553.1±9.96µs | +0.20% | | ops/array/jwst/remove | 272.9±3.10µs | 272.9±3.98µs | -0.00% | | ops/array/yrs/insert | 107.3±1.00µs | 112.3±0.94µs | **+4.66%** | | ops/array/yrs/insert range | 147.7±1.72µs | 150.9±1.25µs | **+2.17%** | | ops/array/yrs/remove | 157.6±2.73µs | 158.5±1.57µs | +0.57% | | ops/text/jwst/insert | 188.5±3.71µs | 185.8±1.95µs | **-1.43%** | | ops/text/jwst/remove | 3.9±0.05µs | 4.8±0.07µs | **+23.08%** | | ops/text/yrs/insert | 46.6±0.54µs | 47.4±0.55µs | **+1.72%** | | ops/text/yrs/remove | 3.8±0.07µs | 4.7±0.04µs | **+23.68%** | | update/parse with jwst/basic.bin | 98.9±2.28µs | 97.1±1.00µs | **-1.82%** | | update/parse with jwst/database.bin | 76.1±0.98µs | 76.3±0.79µs | **+0.26%** | | update/parse with jwst/large.bin | 4.6±0.15ms | 4.5±0.10ms | **-2.17%** | | update/parse with jwst/with-subdoc.bin | 15.0±0.20µs | 14.9±0.37µs | **-0.67%** | | update/parse with yrs/basic.bin | 66.9±0.98µs | 66.8±0.55µs | **-0.15%** | | update/parse with yrs/database.bin | 52.5±0.93µs | 51.6±0.53µs | **-1.71%** | | update/parse with yrs/large.bin | 3.1±0.08ms | 3.2±0.16ms | **+3.23%** | | update/parse with yrs/with-subdoc.bin | 11.6±0.15µs | 11.6±0.11µs | -0.00% |