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: move compatibility test to utils #27

Closed darkskygit closed 11 months ago

darkskygit commented 12 months ago

this pr will move all yrs deps in dev-deps to y-octo-utils

github-actions[bot] commented 12 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 508.5±18.87µs | 534.2±19.08µs | **+5.05%** | | codec/jwst decode var_uint (32 bit) | 485.6±16.14µs | 468.1±15.54µs | **-3.60%** | | codec/jwst decode var_uint (64 bit) | 465.7±16.12µs | 351.6±10.78µs | **-24.50%** | | codec/jwst encode var_int (32 bit) | 627.3±20.12µs | 581.1±20.79µs | **-7.36%** | | codec/jwst encode var_uint (32 bit) | 408.0±12.37µs | 413.8±16.08µs | +1.42% | | codec/jwst encode var_uint (64 bit) | 414.3±13.19µs | 411.1±11.23µs | -0.77% | | codec/lib0 decode var_int (64 bit) | 501.2±13.85µs | 511.9±17.12µs | +2.13% | | codec/lib0 decode var_uint (32 bit) | 381.2±14.10µs | 382.3±14.94µs | +0.29% | | codec/lib0 decode var_uint (64 bit) | 394.3±15.85µs | 261.7±10.19µs | **-33.63%** | | codec/lib0 encode var_int (64 bit) | 493.9±26.34µs | 523.3±17.66µs | **+5.95%** | | codec/lib0 encode var_uint (32 bit) | 449.6±16.27µs | 431.8±15.20µs | **-3.96%** | | codec/lib0 encode var_uint (64 bit) | 443.2±17.43µs | 439.7±14.26µs | -0.79% | | ops/array/jwst/insert | 295.8±21.43µs | 292.1±10.03µs | -1.25% | | ops/array/jwst/insert range | 436.1±26.27µs | 423.5±16.16µs | -2.89% | | ops/array/jwst/remove | 178.0±5.41µs | 177.4±4.91µs | -0.34% | | ops/array/yrs/insert | 93.1±3.46µs | 95.3±2.89µs | **+2.36%** | | ops/array/yrs/insert range | 119.3±3.75µs | 124.2±5.08µs | **+4.11%** | | ops/array/yrs/remove | 110.0±3.00µs | 101.6±3.09µs | **-7.64%** | | ops/text/jwst/insert | 158.8±5.21µs | 161.1±4.52µs | +1.45% | | ops/text/jwst/remove | 3.9±0.13µs | 3.8±0.09µs | **-2.56%** | | ops/text/yrs/insert | 44.9±1.89µs | 44.6±1.39µs | -0.67% | | ops/text/yrs/remove | 2.5±0.08µs | 2.6±0.07µs | **+4.00%** | | update/parse with jwst/basic.bin | 76.4±2.11µs | 77.9±2.45µs | +1.96% | | update/parse with jwst/database.bin | 63.3±4.23µs | 61.4±1.69µs | **-3.00%** | | update/parse with jwst/large.bin | 5.7±0.17ms | 5.9±0.19ms | **+3.51%** | | update/parse with jwst/with-subdoc.bin | 7.4±0.42µs | 7.5±0.30µs | **+1.35%** | | update/parse with yrs/basic.bin | 49.7±1.41µs | 48.1±1.15µs | **-3.22%** | | update/parse with yrs/database.bin | 39.8±1.09µs | 39.4±0.90µs | **-1.01%** | | update/parse with yrs/large.bin | 3.7±0.11ms | 3.7±0.10ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 7.1±0.20µs | 7.1±0.19µs | -0.00% |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 337.4±3.61µs | 351.3±3.02µs | **+4.12%** | | codec/jwst decode var_uint (32 bit) | 286.0±1.35µs | 292.5±3.14µs | **+2.27%** | | codec/jwst decode var_uint (64 bit) | 295.0±1.29µs | 308.3±0.74µs | **+4.51%** | | codec/jwst encode var_int (32 bit) | 442.1±3.16µs | 396.4±1.60µs | **-10.34%** | | codec/jwst encode var_uint (32 bit) | 380.9±1.41µs | 294.2±5.96µs | **-22.76%** | | codec/jwst encode var_uint (64 bit) | 380.8±1.37µs | 295.2±6.31µs | **-22.48%** | | codec/lib0 decode var_int (64 bit) | 280.1±6.73µs | 276.2±0.59µs | **-1.39%** | | codec/lib0 decode var_uint (32 bit) | 236.0±2.39µs | 236.4±2.52µs | +0.17% | | codec/lib0 decode var_uint (64 bit) | 240.6±12.77µs | 264.8±4.63µs | **+10.06%** | | codec/lib0 encode var_int (64 bit) | 432.5±25.63µs | 424.3±1.75µs | **-1.90%** | | codec/lib0 encode var_uint (32 bit) | 403.8±3.22µs | 360.1±1.96µs | **-10.82%** | | codec/lib0 encode var_uint (64 bit) | 313.4±3.56µs | 305.2±5.53µs | **-2.62%** | | ops/array/jwst/insert | 294.5±0.93µs | 296.2±0.79µs | **+0.58%** | | ops/array/jwst/insert range | 404.9±1.55µs | 409.5±5.01µs | **+1.14%** | | ops/array/jwst/remove | 175.6±0.44µs | 175.0±0.37µs | **-0.34%** | | ops/array/yrs/insert | 99.9±0.38µs | 96.2±0.36µs | **-3.70%** | | ops/array/yrs/insert range | 138.5±1.33µs | 135.7±0.94µs | **-2.02%** | | ops/array/yrs/remove | 140.7±0.38µs | 140.4±0.41µs | **-0.21%** | | ops/text/jwst/insert | 165.7±0.89µs | 164.9±0.75µs | **-0.48%** | | ops/text/jwst/remove | 4.1±0.03µs | 4.1±0.04µs | -0.00% | | ops/text/yrs/insert | 43.1±0.18µs | 42.3±0.13µs | **-1.86%** | | ops/text/yrs/remove | 3.6±0.02µs | 3.6±0.01µs | -0.00% | | update/parse with jwst/basic.bin | 86.7±0.27µs | 87.7±0.43µs | **+1.15%** | | update/parse with jwst/database.bin | 70.5±0.17µs | 69.8±0.32µs | **-0.99%** | | update/parse with jwst/large.bin | 4.3±0.07ms | 4.2±0.17ms | **-2.33%** | | update/parse with jwst/with-subdoc.bin | 14.6±0.05µs | 14.2±0.03µs | **-2.74%** | | update/parse with yrs/basic.bin | 58.3±0.51µs | 57.5±0.24µs | **-1.37%** | | update/parse with yrs/database.bin | 46.0±0.12µs | 50.1±0.16µs | **+8.91%** | | update/parse with yrs/large.bin | 2.9±0.08ms | 2.8±0.05ms | **-3.45%** | | update/parse with yrs/with-subdoc.bin | 10.2±0.05µs | 11.1±0.02µs | **+8.82%** |
codecov-commenter commented 11 months ago

Codecov Report

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

Comparison is base (ff89ad2) 77.62% compared to head (69508e7) 77.65%.

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #27 +/- ## ========================================== + Coverage 77.62% 77.65% +0.03% ========================================== Files 48 49 +1 Lines 7423 7443 +20 ========================================== + Hits 5762 5780 +18 - Misses 1661 1663 +2 ``` | [Flag](https://app.codecov.io/gh/y-crdt/y-octo/pull/27/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/27/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/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [y-octo-utils/bin/memory\_leak\_test.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLXV0aWxzL2Jpbi9tZW1vcnlfbGVha190ZXN0LnJz) | `0.00% <ø> (ø)` | | | [y-octo-utils/src/doc.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLXV0aWxzL3NyYy9kb2MucnM=) | `100.00% <100.00%> (ø)` | | | [y-octo-utils/yrs-is-unsafe/bin/global\_lock.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLXV0aWxzL3lycy1pcy11bnNhZmUvYmluL2dsb2JhbF9sb2NrLnJz) | `0.00% <ø> (ø)` | | | [y-octo-utils/yrs-is-unsafe/bin/mem\_usage.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLXV0aWxzL3lycy1pcy11bnNhZmUvYmluL21lbV91c2FnZS5ycw==) | `0.00% <ø> (ø)` | | | [y-octo-utils/yrs-is-unsafe/src/main.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvLXV0aWxzL3lycy1pcy11bnNhZmUvc3JjL21haW4ucnM=) | `0.00% <ø> (ø)` | | | [y-octo/src/codec/integer.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9jb2RlYy9pbnRlZ2VyLnJz) | `94.59% <100.00%> (-0.57%)` | :arrow_down: | | [y-octo/src/doc/document.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvZG9jdW1lbnQucnM=) | `77.12% <ø> (-0.84%)` | :arrow_down: | | [y-octo/src/doc/publisher.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9kb2MvcHVibGlzaGVyLnJz) | `89.34% <100.00%> (-0.41%)` | :arrow_down: | | [y-octo/src/protocol/awareness.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9wcm90b2NvbC9hd2FyZW5lc3MucnM=) | `98.82% <100.00%> (+0.08%)` | :arrow_up: | | [y-octo/src/protocol/scanner.rs](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eS1vY3RvL3NyYy9wcm90b2NvbC9zY2FubmVyLnJz) | `90.00% <ø> (-2.11%)` | :arrow_down: | | ... and [2 more](https://app.codecov.io/gh/y-crdt/y-octo/pull/27?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) | 554.1±0.54µs | 630.0±0.42µs | **+13.70%** | | codec/jwst decode var_uint (32 bit) | 569.2±2.58µs | 536.3±0.35µs | **-5.78%** | | codec/jwst decode var_uint (64 bit) | 384.7±0.29µs | 514.5±0.28µs | **+33.74%** | | codec/jwst encode var_int (32 bit) | 566.5±5.03µs | 658.5±4.94µs | **+16.24%** | | codec/jwst encode var_uint (32 bit) | 355.1±1.77µs | 448.5±1.29µs | **+26.30%** | | codec/jwst encode var_uint (64 bit) | 353.7±1.99µs | 447.8±0.98µs | **+26.60%** | | codec/lib0 decode var_int (64 bit) | 476.3±0.95µs | 553.0±0.44µs | **+16.10%** | | codec/lib0 decode var_uint (32 bit) | 289.2±0.22µs | 288.7±0.14µs | **-0.17%** | | codec/lib0 decode var_uint (64 bit) | 299.0±11.21µs | 289.8±0.34µs | **-3.08%** | | codec/lib0 encode var_int (64 bit) | 555.7±13.34µs | 536.0±6.59µs | **-3.55%** | | codec/lib0 encode var_uint (32 bit) | 483.0±2.21µs | 477.7±1.61µs | **-1.10%** | | codec/lib0 encode var_uint (64 bit) | 342.9±0.50µs | 469.7±2.88µs | **+36.98%** | | ops/array/jwst/insert | 300.0±1.85µs | 300.6±1.98µs | +0.20% | | ops/array/jwst/insert range | 427.2±1.50µs | 428.5±0.30µs | **+0.30%** | | ops/array/jwst/remove | 190.5±0.75µs | 192.8±0.12µs | **+1.21%** | | ops/array/yrs/insert | 106.6±0.18µs | 98.4±0.19µs | **-7.69%** | | ops/array/yrs/insert range | 131.3±0.26µs | 132.7±1.00µs | **+1.07%** | | ops/array/yrs/remove | 121.9±2.86µs | 120.0±0.08µs | **-1.56%** | | ops/map/jwst/get | 477.2±3.37ns | 547.6±3.64ns | **+14.75%** | | ops/map/jwst/insert | 7.4±0.01µs | 6.9±0.02µs | **-6.76%** | | ops/map/jwst/remove | 8.6±0.02µs | 8.7±0.01µs | **+1.16%** | | ops/map/yrs/get | 383.3±4.45ns | 379.7±2.85ns | **-0.94%** | | ops/map/yrs/insert | 6.3±0.03µs | 6.0±0.00µs | **-4.76%** | | ops/map/yrs/remove | 7.6±0.01µs | 7.9±0.01µs | **+3.95%** | | ops/text/jwst/insert | 154.0±0.37µs | 158.4±5.21µs | **+2.86%** | | ops/text/jwst/remove | 3.7±0.00µs | 4.0±0.01µs | **+8.11%** | | ops/text/yrs/insert | 47.5±0.19µs | 45.0±0.84µs | **-5.26%** | | ops/text/yrs/remove | 3.0±0.01µs | 2.9±0.01µs | **-3.33%** | | update/parse with jwst/basic.bin | 69.9±0.09µs | 70.2±0.07µs | **+0.43%** | | update/parse with jwst/database.bin | 57.4±0.03µs | 57.6±0.64µs | **+0.35%** | | update/parse with jwst/large.bin | 5.4±0.06ms | 5.4±0.05ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 7.3±0.14µs | 7.3±0.15µs | -0.00% | | update/parse with yrs/basic.bin | 54.6±0.04µs | 53.8±0.04µs | **-1.47%** | | update/parse with yrs/database.bin | 43.4±0.03µs | 43.2±0.03µs | **-0.46%** | | update/parse with yrs/large.bin | 4.0±0.10ms | 4.4±0.05ms | **+10.00%** | | update/parse with yrs/with-subdoc.bin | 7.8±0.02µs | 5.7±0.21µs | **-26.92%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 338.6±4.29µs | 352.1±3.34µs | **+3.99%** | | codec/jwst decode var_uint (32 bit) | 292.0±3.66µs | 286.1±1.24µs | **-2.02%** | | codec/jwst decode var_uint (64 bit) | 335.6±4.93µs | 294.5±0.97µs | **-12.25%** | | codec/jwst encode var_int (32 bit) | 398.9±3.30µs | 484.2±7.21µs | **+21.38%** | | codec/jwst encode var_uint (32 bit) | 293.2±8.06µs | 396.1±2.44µs | **+35.10%** | | codec/jwst encode var_uint (64 bit) | 293.8±7.69µs | 387.5±4.79µs | **+31.89%** | | codec/lib0 decode var_int (64 bit) | 288.3±3.60µs | 276.4±0.75µs | **-4.13%** | | codec/lib0 decode var_uint (32 bit) | 261.9±9.61µs | 265.5±5.00µs | +1.37% | | codec/lib0 decode var_uint (64 bit) | 267.0±4.07µs | 238.3±3.93µs | **-10.75%** | | codec/lib0 encode var_int (64 bit) | 449.0±11.94µs | 424.0±1.79µs | **-5.57%** | | codec/lib0 encode var_uint (32 bit) | 320.1±5.71µs | 401.5±3.06µs | **+25.43%** | | codec/lib0 encode var_uint (64 bit) | 308.3±4.84µs | 309.5±3.71µs | +0.39% | | ops/array/jwst/insert | 280.8±0.95µs | 281.7±1.29µs | **+0.32%** | | ops/array/jwst/insert range | 381.7±1.55µs | 385.6±6.87µs | **+1.02%** | | ops/array/jwst/remove | 170.5±0.57µs | 169.8±0.76µs | **-0.41%** | | ops/array/yrs/insert | 101.9±0.45µs | 103.7±0.46µs | **+1.77%** | | ops/array/yrs/insert range | 141.4±0.63µs | 139.9±0.54µs | **-1.06%** | | ops/array/yrs/remove | 142.0±1.25µs | 141.9±0.54µs | **-0.07%** | | ops/map/jwst/get | 400.9±12.24ns | 478.4±7.44ns | **+19.33%** | | ops/map/jwst/insert | 8.9±0.04µs | 9.0±0.05µs | **+1.12%** | | ops/map/jwst/remove | 9.9±0.04µs | 9.3±0.04µs | **-6.06%** | | ops/map/yrs/get | 377.2±6.87ns | 379.4±4.67ns | +0.58% | | ops/map/yrs/insert | 9.1±0.04µs | 8.3±0.09µs | **-8.79%** | | ops/map/yrs/remove | 10.1±0.05µs | 10.7±0.14µs | **+5.94%** | | ops/text/jwst/insert | 148.5±1.16µs | 145.3±0.64µs | **-2.15%** | | ops/text/jwst/remove | 3.9±0.22µs | 3.9±0.02µs | -0.00% | | ops/text/yrs/insert | 43.8±0.18µs | 43.2±0.17µs | **-1.37%** | | ops/text/yrs/remove | 3.6±0.01µs | 3.6±0.01µs | -0.00% | | update/parse with jwst/basic.bin | 73.3±0.36µs | 74.2±1.10µs | **+1.23%** | | update/parse with jwst/database.bin | 58.4±0.25µs | 58.1±0.43µs | **-0.51%** | | update/parse with jwst/large.bin | 3.8±0.13ms | 3.6±0.14ms | **-5.26%** | | update/parse with jwst/with-subdoc.bin | 10.9±0.03µs | 10.5±0.07µs | **-3.67%** | | update/parse with yrs/basic.bin | 58.3±0.24µs | 60.8±0.22µs | **+4.29%** | | update/parse with yrs/database.bin | 46.4±0.21µs | 48.4±0.79µs | **+4.31%** | | update/parse with yrs/large.bin | 2.9±0.11ms | 2.9±0.09ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 10.2±0.04µs | 10.4±0.04µs | **+1.96%** |
github-actions[bot] commented 11 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 524.6±2.43µs | 377.5±1.56µs | **-28.04%** | | codec/jwst decode var_uint (32 bit) | 446.5±0.32µs | 357.7±1.83µs | **-19.89%** | | codec/jwst decode var_uint (64 bit) | 472.7±0.21µs | 320.2±0.21µs | **-32.26%** | | codec/jwst encode var_int (32 bit) | 501.9±5.97µs | 472.0±5.63µs | **-5.96%** | | codec/jwst encode var_uint (32 bit) | 315.5±2.47µs | 326.3±3.75µs | **+3.42%** | | codec/jwst encode var_uint (64 bit) | 315.1±0.49µs | 324.6±8.07µs | **+3.01%** | | codec/lib0 decode var_int (64 bit) | 279.4±0.11µs | 460.2±0.20µs | **+64.71%** | | codec/lib0 decode var_uint (32 bit) | 385.2±1.40µs | 352.0±2.20µs | **-8.62%** | | codec/lib0 decode var_uint (64 bit) | 385.0±0.43µs | 385.0±0.21µs | -0.00% | | codec/lib0 encode var_int (64 bit) | 447.6±7.26µs | 476.5±5.54µs | **+6.46%** | | codec/lib0 encode var_uint (32 bit) | 404.7±1.48µs | 383.0±1.50µs | **-5.36%** | | codec/lib0 encode var_uint (64 bit) | 285.3±1.04µs | 400.0±1.76µs | **+40.20%** | | ops/array/jwst/insert | 248.8±0.89µs | 247.1±1.07µs | **-0.68%** | | ops/array/jwst/insert range | 358.7±2.95µs | 362.8±0.18µs | **+1.14%** | | ops/array/jwst/remove | 158.6±1.38µs | 155.2±0.10µs | **-2.14%** | | ops/array/yrs/insert | 89.7±0.13µs | 79.8±0.05µs | **-11.04%** | | ops/array/yrs/insert range | 110.6±0.17µs | 109.4±0.10µs | **-1.08%** | | ops/array/yrs/remove | 95.7±1.50µs | 96.6±1.08µs | +0.94% | | ops/map/jwst/get | 405.8±1.67ns | 460.2±5.13ns | **+13.41%** | | ops/map/jwst/insert | 5.8±0.06µs | 5.7±0.02µs | **-1.72%** | | ops/map/jwst/remove | 7.2±0.02µs | 7.2±0.02µs | -0.00% | | ops/map/yrs/get | 328.5±5.05ns | 353.1±4.39ns | **+7.49%** | | ops/map/yrs/insert | 5.3±0.01µs | 5.1±0.03µs | **-3.77%** | | ops/map/yrs/remove | 6.5±0.01µs | 6.6±0.01µs | **+1.54%** | | ops/text/jwst/insert | 128.3±0.82µs | 130.1±0.36µs | **+1.40%** | | ops/text/jwst/remove | 3.3±0.00µs | 3.4±0.00µs | **+3.03%** | | ops/text/yrs/insert | 39.6±0.07µs | 37.7±0.08µs | **-4.80%** | | ops/text/yrs/remove | 2.3±0.00µs | 2.3±0.00µs | -0.00% | | update/parse with jwst/basic.bin | 58.2±0.19µs | 58.6±0.20µs | **+0.69%** | | update/parse with jwst/database.bin | 47.4±0.02µs | 47.7±0.01µs | **+0.63%** | | update/parse with jwst/large.bin | 4.4±0.01ms | 4.5±0.00ms | **+2.27%** | | update/parse with jwst/with-subdoc.bin | 6.1±0.04µs | 6.1±0.01µs | -0.00% | | update/parse with yrs/basic.bin | 44.0±0.10µs | 43.9±0.02µs | **-0.23%** | | update/parse with yrs/database.bin | 35.8±0.01µs | 35.9±0.02µs | **+0.28%** | | update/parse with yrs/large.bin | 3.2±0.01ms | 3.6±0.01ms | **+12.50%** | | update/parse with yrs/with-subdoc.bin | 6.5±0.00µs | 4.7±0.02µs | **-27.69%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 366.1±6.37µs | 364.9±5.53µs | -0.33% | | codec/jwst decode var_uint (32 bit) | 367.0±4.80µs | 355.2±6.44µs | **-3.22%** | | codec/jwst decode var_uint (64 bit) | 486.3±7.01µs | 456.2±5.56µs | **-6.19%** | | codec/jwst encode var_int (32 bit) | 458.0±6.89µs | 463.4±6.11µs | +1.18% | | codec/jwst encode var_uint (32 bit) | 301.7±3.87µs | 311.0±7.27µs | **+3.08%** | | codec/jwst encode var_uint (64 bit) | 301.5±3.85µs | 303.5±3.62µs | +0.66% | | codec/lib0 decode var_int (64 bit) | 370.2±6.40µs | 291.0±4.56µs | **-21.39%** | | codec/lib0 decode var_uint (32 bit) | 327.1±4.06µs | 243.6±4.43µs | **-25.53%** | | codec/lib0 decode var_uint (64 bit) | 328.0±4.38µs | 242.7±3.41µs | **-26.01%** | | codec/lib0 encode var_int (64 bit) | 550.0±13.01µs | 559.9±7.13µs | **+1.80%** | | codec/lib0 encode var_uint (32 bit) | 406.1±9.97µs | 371.6±7.10µs | **-8.50%** | | codec/lib0 encode var_uint (64 bit) | 389.3±6.16µs | 385.4±4.79µs | -1.00% | | ops/array/jwst/insert | 284.7±4.79µs | 285.9±3.46µs | +0.42% | | ops/array/jwst/insert range | 394.1±6.42µs | 394.8±4.14µs | +0.18% | | ops/array/jwst/remove | 166.8±1.30µs | 167.3±1.92µs | +0.30% | | ops/array/yrs/insert | 106.6±1.22µs | 106.6±1.47µs | -0.00% | | ops/array/yrs/insert range | 145.6±1.33µs | 145.7±1.51µs | +0.07% | | ops/array/yrs/remove | 151.6±1.83µs | 166.0±1.62µs | **+9.50%** | | ops/map/jwst/get | 420.4±4.13ns | 501.8±14.34ns | **+19.36%** | | ops/map/jwst/insert | 9.8±0.35µs | 10.2±0.15µs | **+4.08%** | | ops/map/jwst/remove | 9.0±0.14µs | 9.0±0.11µs | -0.00% | | ops/map/yrs/get | 353.3±7.58ns | 355.6±8.96ns | +0.65% | | ops/map/yrs/insert | 8.8±0.09µs | 7.8±0.08µs | **-11.36%** | | ops/map/yrs/remove | 9.4±0.13µs | 10.2±0.08µs | **+8.51%** | | ops/text/jwst/insert | 156.6±2.75µs | 157.1±1.67µs | +0.32% | | ops/text/jwst/remove | 3.9±0.04µs | 3.7±0.04µs | **-5.13%** | | ops/text/yrs/insert | 45.0±0.36µs | 45.7±0.41µs | **+1.56%** | | ops/text/yrs/remove | 3.6±0.03µs | 3.5±0.04µs | **-2.78%** | | update/parse with jwst/basic.bin | 83.9±0.72µs | 83.6±1.19µs | **-0.36%** | | update/parse with jwst/database.bin | 65.8±0.65µs | 63.1±0.76µs | **-4.10%** | | update/parse with jwst/large.bin | 4.0±0.12ms | 3.9±0.13ms | **-2.50%** | | update/parse with jwst/with-subdoc.bin | 12.4±0.12µs | 11.4±0.11µs | **-8.06%** | | update/parse with yrs/basic.bin | 68.0±0.96µs | 69.4±1.89µs | **+2.06%** | | update/parse with yrs/database.bin | 51.7±0.52µs | 53.9±0.57µs | **+4.26%** | | update/parse with yrs/large.bin | 3.1±0.14ms | 3.2±0.11ms | **+3.23%** | | update/parse with yrs/with-subdoc.bin | 11.1±0.10µs | 11.9±0.12µs | **+7.21%** |