y-crdt / y-octo

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

feat: beautiful benchmark result #11

Closed darkskygit closed 1 year ago

codecov-commenter commented 1 year ago

Codecov Report

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

Comparison is base (6a409f0) 77.63% compared to head (ba87c3b) 78.85%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #11 +/- ## ========================================== + Coverage 77.63% 78.85% +1.21% ========================================== Files 46 39 -7 Lines 6809 6232 -577 ========================================== - Hits 5286 4914 -372 + Misses 1523 1318 -205 ``` | [Flag](https://app.codecov.io/gh/toeverything/y-octo/pull/11/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/11/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/11?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/11?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%> (ø)` | | ... and [11 files with indirect coverage changes](https://app.codecov.io/gh/toeverything/y-octo/pull/11/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 for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 339.4±6.64µs | 316.8±0.34µs | **-6.66%** | | codec/jwst decode var_uint (32 bit) | 270.7±1.50µs | 273.0±6.71µs | **+0.85%** | | codec/jwst decode var_uint (64 bit) | 304.5±5.25µs | 305.2±2.45µs | +0.23% | | codec/jwst encode var_int (32 bit) | 473.8±1.33µs | 500.5±8.35µs | **+5.64%** | | codec/jwst encode var_uint (32 bit) | 376.6±0.75µs | 283.4±2.65µs | **-24.75%** | | codec/jwst encode var_uint (64 bit) | 376.3±0.73µs | 277.6±3.44µs | **-26.23%** | | codec/lib0 decode var_int (64 bit) | 275.4±1.29µs | 288.5±7.39µs | **+4.76%** | | codec/lib0 decode var_uint (32 bit) | 239.0±4.11µs | 232.2±1.32µs | **-2.85%** | | codec/lib0 decode var_uint (64 bit) | 257.8±3.95µs | 267.1±4.61µs | **+3.61%** | | codec/lib0 encode var_int (64 bit) | 385.4±0.78µs | 389.3±1.52µs | **+1.01%** | | codec/lib0 encode var_uint (32 bit) | 284.2±4.01µs | 281.7±4.06µs | -0.88% | | codec/lib0 encode var_uint (64 bit) | 347.1±3.46µs | 342.0±0.53µs | **-1.47%** | | ops/array/jwst/insert | 395.4±5.11µs | 395.7±0.74µs | **+0.08%** | | ops/array/jwst/insert range | 531.2±4.44µs | 534.1±0.30µs | **+0.55%** | | ops/array/jwst/remove | 277.3±0.29µs | 276.6±0.70µs | **-0.25%** | | ops/array/yrs/insert | 89.0±0.16µs | 87.5±0.15µs | **-1.69%** | | ops/array/yrs/insert range | 114.1±0.75µs | 114.0±0.86µs | **-0.09%** | | ops/array/yrs/remove | 102.1±1.38µs | 99.7±0.34µs | **-2.35%** | | ops/text/jwst/insert | 147.1±0.83µs | 147.2±0.27µs | **+0.07%** | | ops/text/jwst/remove | 3.2±0.02µs | 3.2±0.01µs | -0.00% | | ops/text/yrs/insert | 41.7±0.04µs | 42.9±0.32µs | **+2.88%** | | ops/text/yrs/remove | 2.4±0.02µs | 2.6±0.01µs | **+8.33%** | | update/parse with jwst/basic.bin | 66.4±0.03µs | 66.5±0.05µs | **+0.15%** | | update/parse with jwst/database.bin | 53.5±0.02µs | 53.9±0.09µs | **+0.75%** | | update/parse with jwst/large.bin | 4.8±0.03ms | 4.9±0.01ms | **+2.08%** | | update/parse with jwst/with-subdoc.bin | 6.4±0.05µs | 6.3±0.00µs | **-1.56%** | | update/parse with yrs/basic.bin | 41.8±0.37µs | 41.9±0.50µs | **+0.24%** | | update/parse with yrs/database.bin | 33.7±0.05µs | 33.9±0.06µs | **+0.59%** | | update/parse with yrs/large.bin | 3.1±0.00ms | 3.1±0.01ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 5.4±0.01µs | 6.2±0.01µs | **+14.81%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 470.0±5.89µs | 529.5±7.49µs | **+12.66%** | | codec/jwst decode var_uint (32 bit) | 392.7±17.03µs | 387.6±4.03µs | **-1.30%** | | codec/jwst decode var_uint (64 bit) | 494.9±26.27µs | 483.6±5.43µs | **-2.28%** | | codec/jwst encode var_int (32 bit) | 499.3±9.07µs | 467.0±6.20µs | **-6.47%** | | codec/jwst encode var_uint (32 bit) | 335.0±10.80µs | 304.3±4.84µs | **-9.16%** | | codec/jwst encode var_uint (64 bit) | 336.2±15.64µs | 303.9±4.39µs | **-9.61%** | | codec/lib0 decode var_int (64 bit) | 433.4±8.18µs | 431.2±6.09µs | -0.51% | | codec/lib0 decode var_uint (32 bit) | 355.8±5.25µs | 242.4±2.92µs | **-31.87%** | | codec/lib0 decode var_uint (64 bit) | 243.3±3.31µs | 354.6±3.82µs | **+45.75%** | | codec/lib0 encode var_int (64 bit) | 603.8±10.16µs | 602.3±8.21µs | -0.25% | | codec/lib0 encode var_uint (32 bit) | 399.8±11.23µs | 398.9±5.03µs | -0.23% | | codec/lib0 encode var_uint (64 bit) | 388.9±5.50µs | 415.3±5.15µs | **+6.79%** | | ops/array/jwst/insert | 415.8±4.55µs | 416.3±4.39µs | +0.12% | | ops/array/jwst/insert range | 551.9±7.99µs | 550.0±4.69µs | -0.34% | | ops/array/jwst/remove | 271.8±2.41µs | 271.1±2.59µs | -0.26% | | ops/array/yrs/insert | 109.2±1.00µs | 104.5±1.42µs | **-4.30%** | | ops/array/yrs/insert range | 150.4±1.76µs | 147.0±1.65µs | **-2.26%** | | ops/array/yrs/remove | 159.6±1.79µs | 163.1±2.26µs | **+2.19%** | | ops/text/jwst/insert | 181.2±2.08µs | 180.9±1.92µs | -0.17% | | ops/text/jwst/remove | 4.6±0.07µs | 4.5±0.05µs | **-2.17%** | | ops/text/yrs/insert | 47.5±0.44µs | 47.5±0.51µs | -0.00% | | ops/text/yrs/remove | 4.6±0.04µs | 4.5±0.03µs | **-2.17%** | | update/parse with jwst/basic.bin | 98.8±1.02µs | 98.7±1.09µs | -0.10% | | update/parse with jwst/database.bin | 75.9±1.29µs | 76.8±1.27µs | +1.19% | | update/parse with jwst/large.bin | 4.5±0.11ms | 4.5±0.11ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 15.0±0.14µs | 14.9±0.17µs | **-0.67%** | | update/parse with yrs/basic.bin | 67.2±0.56µs | 66.7±0.73µs | **-0.74%** | | update/parse with yrs/database.bin | 51.9±0.61µs | 52.1±0.47µs | **+0.39%** | | update/parse with yrs/large.bin | 3.2±0.10ms | 3.1±0.08ms | **-3.12%** | | update/parse with yrs/with-subdoc.bin | 11.6±0.11µs | 11.6±0.10µs | -0.00% |