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.41k stars 92 forks source link

feat: add `sys:id` in block serializer #539

Closed darkskygit closed 1 year ago

vercel[bot] commented 1 year 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 Sep 18, 2023 8:21am
github-actions[bot] commented 1 year ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 359.6±17.76µs | 373.1±16.55µs | +3.75% | | codec/jwst decode var_uint (32 bit) | 303.3±16.75µs | 307.6±16.91µs | +1.42% | | codec/jwst decode var_uint (64 bit) | 382.7±17.69µs | 379.8±15.54µs | -0.76% | | codec/jwst encode var_int (32 bit) | 534.4±27.31µs | 549.8±22.03µs | +2.88% | | codec/jwst encode var_uint (32 bit) | 342.0±18.65µs | 350.9±20.20µs | +2.60% | | codec/jwst encode var_uint (64 bit) | 347.9±17.64µs | 341.1±20.13µs | -1.95% | | codec/lib0 decode var_int (64 bit) | 316.5±15.82µs | 313.8±14.16µs | -0.85% | | codec/lib0 decode var_uint (32 bit) | 418.4±20.90µs | 413.3±20.03µs | -1.22% | | codec/lib0 decode var_uint (64 bit) | 263.6±13.92µs | 266.5±11.64µs | +1.10% | | codec/lib0 encode var_int (64 bit) | 565.0±29.62µs | 578.4±29.69µs | +2.37% | | codec/lib0 encode var_uint (32 bit) | 436.0±23.78µs | 426.2±23.29µs | -2.25% | | codec/lib0 encode var_uint (64 bit) | 448.3±20.85µs | 456.4±17.94µs | +1.81% | | ops/array/jwst/insert | 303.1±14.93µs | 294.4±14.65µs | -2.87% | | ops/array/jwst/insert range | 426.7±20.62µs | 450.3±17.70µs | **+5.53%** | | ops/array/jwst/remove | 188.2±7.76µs | 182.4±9.33µs | -3.08% | | ops/array/yrs/insert | 98.7±4.46µs | 101.6±4.93µs | +2.94% | | ops/array/yrs/insert range | 131.1±5.61µs | 122.0±6.19µs | **-6.94%** | | ops/array/yrs/remove | 108.8±5.57µs | 107.3±5.70µs | -1.38% | | ops/text/jwst/insert | 168.3±7.42µs | 160.4±8.02µs | **-4.69%** | | ops/text/jwst/remove | 3.8±0.19µs | 3.7±0.20µs | **-2.63%** | | ops/text/yrs/insert | 48.8±2.14µs | 48.3±1.92µs | -1.02% | | ops/text/yrs/remove | 2.6±0.13µs | 2.6±0.14µs | -0.00% | | update/parse with jwst/basic.bin | 80.3±1.69µs | 73.3±3.62µs | **-8.72%** | | update/parse with jwst/database.bin | 60.2±2.68µs | 59.0±2.84µs | -1.99% | | update/parse with jwst/large.bin | 4.0±0.15ms | 3.9±0.15ms | **-2.50%** | | update/parse with jwst/with-subdoc.bin | 7.0±0.32µs | 7.0±0.35µs | -0.00% | | update/parse with yrs/basic.bin | 50.3±2.16µs | 47.7±2.23µs | **-5.17%** | | update/parse with yrs/database.bin | 39.1±1.76µs | 39.1±1.73µs | -0.00% | | update/parse with yrs/large.bin | 2.5±0.10ms | 2.4±0.11ms | **-4.00%** | | update/parse with yrs/with-subdoc.bin | 7.2±0.24µs | 6.7±0.30µs | **-6.94%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 456.6±23.80µs | 454.6±21.97µs | -0.44% | | codec/jwst decode var_uint (32 bit) | 488.4±26.05µs | 481.9±22.31µs | -1.33% | | codec/jwst decode var_uint (64 bit) | 602.9±26.55µs | 597.2±21.71µs | -0.95% | | codec/jwst encode var_int (32 bit) | 612.0±22.46µs | 609.9±26.28µs | -0.34% | | codec/jwst encode var_uint (32 bit) | 469.3±20.90µs | 463.6±29.36µs | -1.21% | | codec/jwst encode var_uint (64 bit) | 468.1±27.14µs | 460.9±24.21µs | -1.54% | | codec/lib0 decode var_int (64 bit) | 366.8±18.44µs | 362.0±17.00µs | -1.31% | | codec/lib0 decode var_uint (32 bit) | 303.6±13.29µs | 302.0±13.54µs | -0.53% | | codec/lib0 decode var_uint (64 bit) | 441.9±17.70µs | 440.8±20.21µs | -0.25% | | codec/lib0 encode var_int (64 bit) | 724.2±27.54µs | 716.2±27.70µs | -1.10% | | codec/lib0 encode var_uint (32 bit) | 498.8±36.80µs | 492.7±22.62µs | -1.22% | | codec/lib0 encode var_uint (64 bit) | 479.2±20.23µs | 478.6±18.44µs | -0.13% | | ops/array/jwst/insert | 377.7±13.08µs | 374.2±14.94µs | -0.93% | | ops/array/jwst/insert range | 523.1±19.71µs | 526.6±15.53µs | +0.67% | | ops/array/jwst/remove | 213.1±6.99µs | 215.9±5.25µs | +1.31% | | ops/array/yrs/insert | 132.9±4.73µs | 132.3±5.09µs | -0.45% | | ops/array/yrs/insert range | 183.0±4.85µs | 182.5±5.68µs | -0.27% | | ops/array/yrs/remove | 194.7±4.22µs | 204.7±6.72µs | **+5.14%** | | ops/text/jwst/insert | 220.5±8.91µs | 219.7±6.49µs | -0.36% | | ops/text/jwst/remove | 5.2±0.14µs | 6.1±0.24µs | **+17.31%** | | ops/text/yrs/insert | 57.9±2.37µs | 59.2±2.44µs | +2.25% | | ops/text/yrs/remove | 4.7±0.31µs | 5.6±0.16µs | **+19.15%** | | update/parse with jwst/basic.bin | 123.4±5.33µs | 120.0±3.59µs | **-2.76%** | | update/parse with jwst/database.bin | 95.0±3.19µs | 94.9±5.38µs | -0.11% | | update/parse with jwst/large.bin | 5.7±0.20ms | 5.7±0.20ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 18.9±0.68µs | 20.3±0.60µs | **+7.41%** | | update/parse with yrs/basic.bin | 82.9±2.45µs | 84.1±2.97µs | +1.45% | | update/parse with yrs/database.bin | 64.3±3.54µs | 67.6±2.31µs | **+5.13%** | | update/parse with yrs/large.bin | 3.9±0.13ms | 3.9±0.26ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 14.1±0.41µs | 14.8±0.44µs | **+4.96%** |