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

chore: rename api to avoid swift keyword #551

Closed darkskygit closed 10 months ago

vercel[bot] commented 10 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 19, 2023 8:20am
github-actions[bot] commented 10 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 342.3±7.00µs | 356.0±3.80µs | **+4.00%** | | codec/jwst decode var_uint (32 bit) | 304.5±3.76µs | 305.8±2.24µs | +0.43% | | codec/jwst decode var_uint (64 bit) | 279.8±1.91µs | 280.0±1.97µs | +0.07% | | codec/jwst encode var_int (32 bit) | 401.5±4.19µs | 403.8±3.93µs | +0.57% | | codec/jwst encode var_uint (32 bit) | 311.4±1.46µs | 310.5±1.31µs | -0.29% | | codec/jwst encode var_uint (64 bit) | 310.1±1.23µs | 310.3±0.81µs | **+0.06%** | | codec/lib0 decode var_int (64 bit) | 269.2±0.62µs | 270.8±0.55µs | **+0.59%** | | codec/lib0 decode var_uint (32 bit) | 232.2±1.40µs | 231.8±1.55µs | -0.17% | | codec/lib0 decode var_uint (64 bit) | 239.3±3.48µs | 238.2±3.41µs | -0.46% | | codec/lib0 encode var_int (64 bit) | 390.7±3.06µs | 388.2±1.55µs | **-0.64%** | | codec/lib0 encode var_uint (32 bit) | 384.0±2.16µs | 387.3±2.77µs | **+0.86%** | | codec/lib0 encode var_uint (64 bit) | 302.8±0.59µs | 304.1±0.65µs | **+0.43%** | | ops/array/jwst/insert | 264.5±1.08µs | 264.5±0.66µs | -0.00% | | ops/array/jwst/insert range | 385.6±0.38µs | 381.1±0.51µs | **-1.17%** | | ops/array/jwst/remove | 170.5±0.04µs | 170.3±0.32µs | **-0.12%** | | ops/array/yrs/insert | 72.8±0.78µs | 72.3±0.30µs | **-0.69%** | | ops/array/yrs/insert range | 103.5±0.75µs | 102.4±0.10µs | **-1.06%** | | ops/array/yrs/remove | 96.7±0.24µs | 97.0±1.29µs | **+0.31%** | | ops/map/jwst/get | 462.5±3.81ns | 460.8±2.30ns | -0.37% | | ops/map/jwst/insert | 7.0±0.03µs | 7.0±0.01µs | -0.00% | | ops/map/jwst/remove | 8.7±0.00µs | 8.9±0.01µs | **+2.30%** | | ops/map/yrs/get | 358.6±3.58ns | 361.2±1.89ns | **+0.73%** | | ops/map/yrs/insert | 5.1±0.01µs | 5.2±0.01µs | **+1.96%** | | ops/map/yrs/remove | 7.0±0.01µs | 7.2±0.01µs | **+2.86%** | | ops/text/jwst/insert | 128.8±0.20µs | 128.7±0.23µs | **-0.08%** | | ops/text/jwst/remove | 3.6±0.06µs | 3.5±0.01µs | **-2.78%** | | ops/text/yrs/insert | 34.9±0.10µs | 35.0±0.13µs | **+0.29%** | | ops/text/yrs/remove | 2.4±0.00µs | 2.4±0.07µs | -0.00% | | update/parse with jwst/basic.bin | 54.1±0.02µs | 54.9±0.58µs | **+1.48%** | | update/parse with jwst/database.bin | 44.2±0.02µs | 45.0±0.06µs | **+1.81%** | | update/parse with jwst/large.bin | 4.6±0.04ms | 2.9±0.02ms | **-36.96%** | | update/parse with jwst/with-subdoc.bin | 5.5±0.00µs | 5.5±0.09µs | -0.00% | | update/parse with yrs/basic.bin | 41.3±0.32µs | 41.6±0.03µs | **+0.73%** | | update/parse with yrs/database.bin | 33.3±0.13µs | 33.4±0.02µs | **+0.30%** | | update/parse with yrs/large.bin | 2.1±0.00ms | 2.1±0.00ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 4.2±0.01µs | 4.3±0.00µs | **+2.38%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 467.7±19.38µs | 478.6±23.75µs | +2.33% | | codec/jwst decode var_uint (32 bit) | 413.5±20.89µs | 425.2±18.08µs | +2.83% | | codec/jwst decode var_uint (64 bit) | 406.9±18.90µs | 448.5±26.68µs | **+10.22%** | | codec/jwst encode var_int (32 bit) | 508.6±21.46µs | 510.9±29.30µs | +0.45% | | codec/jwst encode var_uint (32 bit) | 359.4±18.05µs | 357.3±23.56µs | -0.58% | | codec/jwst encode var_uint (64 bit) | 342.8±16.89µs | 364.5±19.25µs | **+6.33%** | | codec/lib0 decode var_int (64 bit) | 345.2±16.98µs | 369.9±13.79µs | **+7.16%** | | codec/lib0 decode var_uint (32 bit) | 310.4±13.19µs | 303.7±13.86µs | -2.16% | | codec/lib0 decode var_uint (64 bit) | 304.6±18.26µs | 295.6±15.11µs | -2.95% | | codec/lib0 encode var_int (64 bit) | 511.9±26.21µs | 537.2±21.87µs | **+4.94%** | | codec/lib0 encode var_uint (32 bit) | 368.2±22.47µs | 348.2±17.47µs | **-5.43%** | | codec/lib0 encode var_uint (64 bit) | 350.3±15.01µs | 374.4±17.70µs | **+6.88%** | | ops/array/jwst/insert | 354.5±13.66µs | 356.2±16.35µs | +0.48% | | ops/array/jwst/insert range | 504.8±20.80µs | 509.9±29.98µs | +1.01% | | ops/array/jwst/remove | 211.5±6.83µs | 199.1±9.83µs | **-5.86%** | | ops/array/yrs/insert | 136.5±7.09µs | 131.4±9.05µs | -3.74% | | ops/array/yrs/insert range | 192.3±9.61µs | 179.4±6.95µs | **-6.71%** | | ops/array/yrs/remove | 205.2±7.66µs | 199.4±8.96µs | -2.83% | | ops/map/jwst/get | 625.0±27.42ns | 595.8±49.89ns | **-4.67%** | | ops/map/jwst/insert | 12.9±0.41µs | 16.1±1.00µs | **+24.81%** | | ops/map/jwst/remove | 11.7±0.42µs | 12.4±0.51µs | **+5.98%** | | ops/map/yrs/get | 449.6±17.80ns | 441.6±24.31ns | -1.78% | | ops/map/yrs/insert | 12.4±0.35µs | 9.7±0.64µs | **-21.77%** | | ops/map/yrs/remove | 12.8±0.46µs | 13.1±0.55µs | **+2.34%** | | ops/text/jwst/insert | 195.6±9.40µs | 193.3±8.60µs | -1.18% | | ops/text/jwst/remove | 4.8±0.20µs | 4.8±0.47µs | -0.00% | | ops/text/yrs/insert | 63.5±2.26µs | 64.3±3.18µs | +1.26% | | ops/text/yrs/remove | 4.5±0.16µs | 5.3±0.26µs | **+17.78%** | | update/parse with jwst/basic.bin | 105.0±4.82µs | 105.2±6.84µs | +0.19% | | update/parse with jwst/database.bin | 83.6±3.74µs | 83.6±4.14µs | -0.00% | | update/parse with jwst/large.bin | 5.4±0.32ms | 5.2±0.27ms | **-3.70%** | | update/parse with jwst/with-subdoc.bin | 14.3±0.55µs | 15.1±0.58µs | **+5.59%** | | update/parse with yrs/basic.bin | 88.4±3.12µs | 80.9±3.39µs | **-8.48%** | | update/parse with yrs/database.bin | 66.5±2.67µs | 63.8±2.98µs | **-4.06%** | | update/parse with yrs/large.bin | 4.4±0.21ms | 4.2±0.19ms | **-4.55%** | | update/parse with yrs/with-subdoc.bin | 15.2±0.72µs | 12.6±0.66µs | **-17.11%** |