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.37k stars 90 forks source link

feat: exclude pending state in broadcast update #546

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 Updated (UTC)
octobase ✅ Ready (Inspect) Visit Preview Oct 10, 2023 1:28pm
github-actions[bot] commented 1 year ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 400.4±17.80µs | 412.5±20.77µs | +3.02% | | codec/jwst decode var_uint (32 bit) | 311.0±22.71µs | 316.6±20.67µs | +1.80% | | codec/jwst decode var_uint (64 bit) | 342.3±18.78µs | 313.0±15.88µs | **-8.56%** | | codec/jwst encode var_int (32 bit) | 485.8±17.77µs | 498.7±23.85µs | +2.66% | | codec/jwst encode var_uint (32 bit) | 373.5±28.45µs | 391.9±15.65µs | **+4.93%** | | codec/jwst encode var_uint (64 bit) | 399.4±35.23µs | 378.3±17.57µs | **-5.28%** | | codec/lib0 decode var_int (64 bit) | 349.7±20.63µs | 322.3±18.04µs | **-7.84%** | | codec/lib0 decode var_uint (32 bit) | 266.7±14.56µs | 269.5±16.14µs | +1.05% | | codec/lib0 decode var_uint (64 bit) | 285.7±26.48µs | 282.0±17.50µs | -1.30% | | codec/lib0 encode var_int (64 bit) | 492.4±29.88µs | 474.2±19.57µs | -3.70% | | codec/lib0 encode var_uint (32 bit) | 492.1±22.72µs | 475.4±33.18µs | -3.39% | | codec/lib0 encode var_uint (64 bit) | 316.5±29.37µs | 321.2±17.06µs | +1.48% | | ops/array/jwst/insert | 291.9±12.68µs | 277.3±11.77µs | **-5.00%** | | ops/array/jwst/insert range | 436.1±19.92µs | 397.6±16.28µs | **-8.83%** | | ops/array/jwst/remove | 194.6±8.98µs | 179.2±9.46µs | **-7.91%** | | ops/array/yrs/insert | 91.4±6.17µs | 82.3±10.46µs | **-9.96%** | | ops/array/yrs/insert range | 123.5±3.79µs | 110.3±3.51µs | **-10.69%** | | ops/array/yrs/remove | 117.4±3.89µs | 105.3±4.17µs | **-10.31%** | | ops/map/jwst/get | 524.5±20.33ns | 487.3±21.59ns | **-7.09%** | | ops/map/jwst/insert | 6.8±0.31µs | 6.5±0.29µs | **-4.41%** | | ops/map/jwst/remove | 8.5±0.30µs | 8.0±0.38µs | **-5.88%** | | ops/map/yrs/get | 392.8±12.58ns | 359.0±16.72ns | **-8.60%** | | ops/map/yrs/insert | 5.7±0.21µs | 5.4±0.22µs | **-5.26%** | | ops/map/yrs/remove | 7.7±0.27µs | 7.4±0.38µs | **-3.90%** | | ops/text/jwst/insert | 149.3±6.20µs | 140.8±5.09µs | **-5.69%** | | ops/text/jwst/remove | 3.5±0.15µs | 3.5±0.12µs | -0.00% | | ops/text/yrs/insert | 43.2±2.42µs | 40.9±1.62µs | **-5.32%** | | ops/text/yrs/remove | 2.7±0.09µs | 2.4±0.09µs | **-11.11%** | | update/parse with jwst/basic.bin | 65.8±3.46µs | 63.0±2.76µs | **-4.26%** | | update/parse with jwst/database.bin | 46.9±4.28µs | 41.9±1.53µs | **-10.66%** | | update/parse with jwst/large.bin | 5.2±0.27ms | 3.3±0.13ms | **-36.54%** | | update/parse with jwst/with-subdoc.bin | 8.9±0.47µs | 7.6±0.26µs | **-14.61%** | | update/parse with yrs/basic.bin | 47.4±2.20µs | 48.8±2.72µs | +2.95% | | update/parse with yrs/database.bin | 30.5±1.55µs | 31.7±1.72µs | **+3.93%** | | update/parse with yrs/large.bin | 2.4±0.12ms | 2.4±0.12ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 6.9±0.25µs | 6.8±0.32µs | **-1.45%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 343.4±8.03µs | 338.2±6.48µs | -1.51% | | codec/jwst decode var_uint (32 bit) | 431.9±9.05µs | 431.0±9.80µs | -0.21% | | codec/jwst decode var_uint (64 bit) | 302.5±6.71µs | 300.5±6.15µs | -0.66% | | codec/jwst encode var_int (32 bit) | 397.1±10.73µs | 389.9±10.33µs | -1.81% | | codec/jwst encode var_uint (32 bit) | 343.6±10.94µs | 354.8±10.45µs | **+3.26%** | | codec/jwst encode var_uint (64 bit) | 333.3±9.51µs | 330.3±9.64µs | -0.90% | | codec/lib0 decode var_int (64 bit) | 260.4±6.30µs | 258.9±6.01µs | -0.58% | | codec/lib0 decode var_uint (32 bit) | 348.2±7.91µs | 345.9±7.39µs | -0.66% | | codec/lib0 decode var_uint (64 bit) | 318.1±7.42µs | 315.7±6.79µs | -0.75% | | codec/lib0 encode var_int (64 bit) | 527.9±11.03µs | 529.5±11.51µs | +0.30% | | codec/lib0 encode var_uint (32 bit) | 339.2±7.35µs | 338.6±7.45µs | -0.18% | | codec/lib0 encode var_uint (64 bit) | 381.5±8.98µs | 363.4±9.51µs | **-4.74%** | | ops/array/jwst/insert | 258.9±9.33µs | 256.7±4.05µs | -0.85% | | ops/array/jwst/insert range | 356.9±8.25µs | 357.6±7.11µs | +0.20% | | ops/array/jwst/remove | 150.8±3.55µs | 149.0±2.28µs | -1.19% | | ops/array/yrs/insert | 103.5±2.37µs | 98.0±1.53µs | **-5.31%** | | ops/array/yrs/insert range | 133.8±3.33µs | 133.9±2.17µs | +0.07% | | ops/array/yrs/remove | 144.5±2.82µs | 142.2±2.78µs | **-1.59%** | | ops/map/jwst/get | 430.6±14.04ns | 427.1±9.24ns | -0.81% | | ops/map/jwst/insert | 8.3±0.31µs | 9.9±0.22µs | **+19.28%** | | ops/map/jwst/remove | 8.3±0.20µs | 9.1±0.14µs | **+9.64%** | | ops/map/yrs/get | 318.4±7.76ns | 315.3±6.93ns | -0.97% | | ops/map/yrs/insert | 7.2±0.11µs | 7.3±0.17µs | **+1.39%** | | ops/map/yrs/remove | 9.5±0.31µs | 9.4±0.16µs | **-1.05%** | | ops/text/jwst/insert | 143.5±2.42µs | 139.5±2.13µs | **-2.79%** | | ops/text/jwst/remove | 3.4±0.05µs | 3.3±0.06µs | **-2.94%** | | ops/text/yrs/insert | 44.6±0.74µs | 46.4±0.91µs | **+4.04%** | | ops/text/yrs/remove | 3.4±0.05µs | 3.4±0.09µs | -0.00% | | update/parse with jwst/basic.bin | 75.1±1.22µs | 73.8±0.99µs | **-1.73%** | | update/parse with jwst/database.bin | 58.1±1.13µs | 60.9±1.94µs | **+4.82%** | | update/parse with jwst/large.bin | 3.6±0.13ms | 3.8±0.25ms | **+5.56%** | | update/parse with jwst/with-subdoc.bin | 11.0±0.17µs | 10.3±0.26µs | **-6.36%** | | update/parse with yrs/basic.bin | 60.9±1.29µs | 60.4±1.96µs | -0.82% | | update/parse with yrs/database.bin | 46.5±1.05µs | 46.7±0.63µs | **+0.43%** | | update/parse with yrs/large.bin | 3.1±0.14ms | 3.1±0.16ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 11.5±0.22µs | 10.7±0.28µs | **-6.96%** |