toeverything / OctoBase

🐙 OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.
https://octobase.dev
GNU Affero General Public License v3.0
1.32k stars 83 forks source link

feat: replace node with gc correctly #544

Closed darkskygit closed 11 months ago

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
octobase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2023 0:08am
codecov[bot] commented 11 months ago

Codecov Report

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

Comparison is base (c989a55) 65.81% compared to head (6eea0a4) 65.78%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #544 +/- ## ========================================== - Coverage 65.81% 65.78% -0.03% ========================================== Files 117 117 Lines 12715 12732 +17 ========================================== + Hits 8368 8376 +8 - Misses 4347 4356 +9 ``` | [Files](https://app.codecov.io/gh/toeverything/OctoBase/pull/544?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [libs/jwst-core/src/space/mod.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/544?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvcmUvc3JjL3NwYWNlL21vZC5ycw==) | `88.03% <100.00%> (ø)` | | | [apps/keck/src/server/api/blocks/workspace.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/544?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvYXBpL2Jsb2Nrcy93b3Jrc3BhY2UucnM=) | `62.14% <0.00%> (ø)` | | | [apps/doc\_merger/src/main.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/544?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9kb2NfbWVyZ2VyL3NyYy9tYWluLnJz) | `0.00% <0.00%> (ø)` | | | [libs/jwst-codec/src/doc/codec/item.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/544?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvY29kZWMvaXRlbS5ycw==) | `78.29% <57.14%> (-0.45%)` | :arrow_down: | | [libs/jwst-codec/src/doc/store.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/544?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2Mvc3RvcmUucnM=) | `87.77% <73.68%> (-0.31%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/toeverything/OctoBase/pull/544/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 11 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 320.5±1.59µs | 319.4±0.27µs | **-0.34%** | | codec/jwst decode var_uint (32 bit) | 280.0±2.66µs | 282.7±2.55µs | **+0.96%** | | codec/jwst decode var_uint (64 bit) | 284.9±2.97µs | 285.2±4.42µs | +0.11% | | codec/jwst encode var_int (32 bit) | 387.8±0.71µs | 387.3±0.66µs | **-0.13%** | | codec/jwst encode var_uint (32 bit) | 277.3±1.54µs | 277.7±1.76µs | +0.14% | | codec/jwst encode var_uint (64 bit) | 277.3±1.57µs | 277.0±1.74µs | -0.11% | | codec/lib0 decode var_int (64 bit) | 270.1±1.32µs | 269.1±0.60µs | **-0.37%** | | codec/lib0 decode var_uint (32 bit) | 232.1±2.24µs | 333.2±54.11µs | **+43.56%** | | codec/lib0 decode var_uint (64 bit) | 238.0±4.96µs | 236.5±2.03µs | -0.63% | | codec/lib0 encode var_int (64 bit) | 406.8±5.51µs | 409.0±6.51µs | +0.54% | | codec/lib0 encode var_uint (32 bit) | 379.1±0.70µs | 379.9±0.82µs | **+0.21%** | | codec/lib0 encode var_uint (64 bit) | 305.3±0.83µs | 305.0±0.77µs | **-0.10%** | | ops/array/jwst/insert | 263.8±0.89µs | 266.1±0.91µs | **+0.87%** | | ops/array/jwst/insert range | 378.9±0.23µs | 382.7±0.52µs | **+1.00%** | | ops/array/jwst/remove | 169.6±0.40µs | 170.3±0.38µs | **+0.41%** | | ops/array/yrs/insert | 80.0±0.63µs | 81.7±1.55µs | **+2.12%** | | ops/array/yrs/insert range | 109.6±1.28µs | 109.3±0.08µs | **-0.27%** | | ops/array/yrs/remove | 95.7±0.69µs | 98.3±0.51µs | **+2.72%** | | ops/map/jwst/get | 469.6±5.50ns | 459.4±1.98ns | **-2.17%** | | ops/map/jwst/insert | 7.3±0.06µs | 7.4±0.01µs | **+1.37%** | | ops/map/jwst/remove | 9.1±0.02µs | 9.5±0.02µs | **+4.40%** | | ops/map/yrs/get | 376.6±2.48ns | 354.0±2.75ns | **-6.00%** | | ops/map/yrs/insert | 6.3±0.01µs | 6.3±0.05µs | -0.00% | | ops/map/yrs/remove | 8.7±0.01µs | 8.6±0.01µs | **-1.15%** | | ops/text/jwst/insert | 128.1±0.19µs | 128.0±0.85µs | **-0.08%** | | ops/text/jwst/remove | 3.5±0.02µs | 3.5±0.01µs | -0.00% | | ops/text/yrs/insert | 37.9±0.12µs | 38.0±0.11µs | **+0.26%** | | ops/text/yrs/remove | 2.5±0.02µs | 2.5±0.01µs | -0.00% | | update/parse with jwst/basic.bin | 56.3±0.03µs | 57.0±0.16µs | **+1.24%** | | update/parse with jwst/database.bin | 35.7±0.06µs | 36.5±0.08µs | **+2.24%** | | update/parse with jwst/large.bin | 2.9±0.00ms | 2.9±0.03ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 8.0±0.04µs | 8.0±0.09µs | -0.00% | | update/parse with yrs/basic.bin | 42.8±0.02µs | 41.6±0.06µs | **-2.80%** | | update/parse with yrs/database.bin | 26.2±0.19µs | 26.3±0.09µs | **+0.38%** | | update/parse with yrs/large.bin | 2.2±0.00ms | 2.1±0.01ms | **-4.55%** | | update/parse with yrs/with-subdoc.bin | 5.6±0.03µs | 6.0±0.05µs | **+7.14%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 250.9±2.62µs | 249.0±1.72µs | **-0.76%** | | codec/jwst decode var_uint (32 bit) | 221.7±1.85µs | 220.9±1.68µs | -0.36% | | codec/jwst decode var_uint (64 bit) | 228.1±13.99µs | 222.5±2.49µs | **-2.46%** | | codec/jwst encode var_int (32 bit) | 277.5±3.99µs | 273.0±2.59µs | **-1.62%** | | codec/jwst encode var_uint (32 bit) | 204.0±3.17µs | 202.0±1.84µs | **-0.98%** | | codec/jwst encode var_uint (64 bit) | 198.0±1.89µs | 196.9±1.61µs | **-0.56%** | | codec/lib0 decode var_int (64 bit) | 205.4±2.49µs | 204.8±1.81µs | -0.29% | | codec/lib0 decode var_uint (32 bit) | 188.9±4.23µs | 187.8±4.61µs | -0.58% | | codec/lib0 decode var_uint (64 bit) | 170.1±2.27µs | 169.3±2.01µs | -0.47% | | codec/lib0 encode var_int (64 bit) | 301.1±3.04µs | 302.4±2.61µs | +0.43% | | codec/lib0 encode var_uint (32 bit) | 262.6±2.51µs | 261.3±2.42µs | -0.50% | | codec/lib0 encode var_uint (64 bit) | 282.7±3.49µs | 281.1±3.23µs | -0.57% | | ops/array/jwst/insert | 203.0±3.45µs | 203.2±4.91µs | +0.10% | | ops/array/jwst/insert range | 272.3±4.13µs | 277.9±2.41µs | **+2.06%** | | ops/array/jwst/remove | 122.2±1.84µs | 123.4±0.80µs | **+0.98%** | | ops/array/yrs/insert | 70.1±1.48µs | 70.8±0.87µs | **+1.00%** | | ops/array/yrs/insert range | 97.5±1.53µs | 98.5±1.48µs | +1.03% | | ops/array/yrs/remove | 103.5±0.97µs | 101.0±0.79µs | **-2.42%** | | ops/map/jwst/get | 335.8±5.19ns | 339.1±10.52ns | +0.98% | | ops/map/jwst/insert | 7.2±0.06µs | 6.9±0.05µs | **-4.17%** | | ops/map/jwst/remove | 6.6±0.06µs | 7.2±0.05µs | **+9.09%** | | ops/map/yrs/get | 277.5±5.74ns | 275.5±4.58ns | -0.72% | | ops/map/yrs/insert | 6.8±0.06µs | 5.9±0.04µs | **-13.24%** | | ops/map/yrs/remove | 7.6±0.11µs | 7.5±0.05µs | **-1.32%** | | ops/text/jwst/insert | 106.5±0.99µs | 105.2±1.04µs | **-1.22%** | | ops/text/jwst/remove | 2.9±0.02µs | 2.8±0.03µs | **-3.45%** | | ops/text/yrs/insert | 32.2±0.34µs | 32.1±0.33µs | **-0.31%** | | ops/text/yrs/remove | 2.7±0.03µs | 2.7±0.02µs | -0.00% | | update/parse with jwst/basic.bin | 54.2±0.38µs | 54.0±0.56µs | **-0.37%** | | update/parse with jwst/database.bin | 42.4±0.70µs | 42.9±0.32µs | **+1.18%** | | update/parse with jwst/large.bin | 2.7±0.05ms | 2.7±0.04ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 7.5±0.08µs | 7.9±0.05µs | **+5.33%** | | update/parse with yrs/basic.bin | 43.5±0.61µs | 43.1±0.61µs | **-0.92%** | | update/parse with yrs/database.bin | 34.4±0.26µs | 34.4±0.23µs | -0.00% | | update/parse with yrs/large.bin | 2.3±0.05ms | 2.3±0.11ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 8.0±0.05µs | 7.1±0.05µs | **-11.25%** |