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

fix: select only model convert #559

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 Nov 9, 2023 2:47pm
github-actions[bot] commented 1 year ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 201.0±0.56µs | 201.0±0.64µs | -0.00% | | codec/jwst decode var_uint (32 bit) | 170.9±1.32µs | 171.2±4.60µs | +0.18% | | codec/jwst decode var_uint (64 bit) | 171.2±2.29µs | 170.8±0.70µs | **-0.23%** | | codec/jwst encode var_int (32 bit) | 302.9±1.17µs | 302.6±1.21µs | -0.10% | | codec/jwst encode var_uint (32 bit) | 269.3±4.37µs | 269.0±1.38µs | -0.11% | | codec/jwst encode var_uint (64 bit) | 268.8±1.76µs | 270.3±9.88µs | **+0.56%** | | codec/lib0 decode var_int (64 bit) | 161.8±1.46µs | 161.9±1.69µs | +0.06% | | codec/lib0 decode var_uint (32 bit) | 144.1±7.60µs | 143.3±1.41µs | -0.56% | | codec/lib0 decode var_uint (64 bit) | 142.1±2.43µs | 141.5±1.44µs | -0.42% | | codec/lib0 encode var_int (64 bit) | 385.7±6.17µs | 384.1±0.86µs | **-0.41%** | | codec/lib0 encode var_uint (32 bit) | 372.9±0.60µs | 372.9±0.53µs | -0.00% | | codec/lib0 encode var_uint (64 bit) | 373.0±0.79µs | 373.2±0.86µs | **+0.05%** | | ops/array/jwst/insert | 111.0±0.48µs | 110.3±0.47µs | **-0.63%** | | ops/array/jwst/insert range | 166.2±3.73µs | 163.7±0.54µs | **-1.50%** | | ops/array/jwst/remove | 63.1±0.62µs | 63.8±0.43µs | **+1.11%** | | ops/array/yrs/insert | 56.9±0.51µs | 56.2±0.48µs | **-1.23%** | | ops/array/yrs/insert range | 72.5±1.32µs | 72.4±0.61µs | **-0.14%** | | ops/array/yrs/remove | 65.4±0.98µs | 64.7±0.74µs | **-1.07%** | | ops/map/jwst/get | 344.9±6.07ns | 345.2±2.72ns | +0.09% | | ops/map/jwst/insert | 4.1±0.01µs | 4.2±0.02µs | **+2.44%** | | ops/map/jwst/remove | 4.7±0.03µs | 4.8±0.02µs | **+2.13%** | | ops/map/yrs/get | 245.3±1.00ns | 247.0±2.40ns | **+0.69%** | | ops/map/yrs/insert | 3.8±0.03µs | 3.8±0.01µs | -0.00% | | ops/map/yrs/remove | 4.9±0.02µs | 4.9±0.02µs | -0.00% | | ops/text/jwst/insert | 68.7±0.70µs | 69.0±0.84µs | **+0.44%** | | ops/text/jwst/remove | 2.1±0.01µs | 2.1±0.05µs | -0.00% | | ops/text/yrs/insert | 27.0±0.14µs | 27.2±0.13µs | **+0.74%** | | ops/text/yrs/remove | 1756.7±44.66ns | 1674.2±5.91ns | **-4.70%** | | update/parse with jwst/basic.bin | 37.2±0.86µs | 37.9±0.32µs | **+1.88%** | | update/parse with jwst/database.bin | 30.1±0.28µs | 29.8±0.18µs | **-1.00%** | | update/parse with jwst/large.bin | 1708.5±15.01µs | 1703.2±58.18µs | -0.31% | | update/parse with jwst/with-subdoc.bin | 5.3±0.34µs | 4.6±0.19µs | **-13.21%** | | update/parse with yrs/basic.bin | 29.5±0.21µs | 29.6±0.90µs | **+0.34%** | | update/parse with yrs/database.bin | 24.0±0.14µs | 23.8±0.18µs | **-0.83%** | | update/parse with yrs/large.bin | 1240.3±16.47µs | 1252.4±16.14µs | +0.98% | | update/parse with yrs/with-subdoc.bin | 3.8±0.01µs | 3.9±0.03µs | **+2.63%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 213.3±2.41µs | 212.9±1.86µs | -0.19% | | codec/jwst decode var_uint (32 bit) | 187.3±10.78µs | 186.3±4.17µs | -0.53% | | codec/jwst decode var_uint (64 bit) | 194.8±2.37µs | 196.1±3.89µs | +0.67% | | codec/jwst encode var_int (32 bit) | 273.5±3.44µs | 272.5±2.82µs | -0.37% | | codec/jwst encode var_uint (32 bit) | 254.9±6.14µs | 253.5±5.19µs | -0.55% | | codec/jwst encode var_uint (64 bit) | 251.3±6.56µs | 248.9±4.45µs | -0.96% | | codec/lib0 decode var_int (64 bit) | 186.3±1.69µs | 192.3±8.66µs | **+3.22%** | | codec/lib0 decode var_uint (32 bit) | 159.0±6.56µs | 157.7±5.68µs | -0.82% | | codec/lib0 decode var_uint (64 bit) | 157.3±6.32µs | 156.8±6.16µs | -0.32% | | codec/lib0 encode var_int (64 bit) | 387.7±13.12µs | 384.1±1.39µs | **-0.93%** | | codec/lib0 encode var_uint (32 bit) | 373.8±1.47µs | 385.2±2.24µs | **+3.05%** | | codec/lib0 encode var_uint (64 bit) | 385.9±1.99µs | 380.6±2.23µs | **-1.37%** | | ops/array/jwst/insert | 159.0±1.14µs | 161.9±4.60µs | **+1.82%** | | ops/array/jwst/insert range | 217.4±1.51µs | 219.0±1.16µs | **+0.74%** | | ops/array/jwst/remove | 99.4±0.73µs | 97.2±1.21µs | **-2.21%** | | ops/array/yrs/insert | 73.6±0.96µs | 68.9±0.40µs | **-6.39%** | | ops/array/yrs/insert range | 102.9±0.62µs | 96.1±0.52µs | **-6.61%** | | ops/array/yrs/remove | 102.5±0.47µs | 99.3±0.36µs | **-3.12%** | | ops/map/jwst/get | 376.8±3.47ns | 376.2±2.83ns | -0.16% | | ops/map/jwst/insert | 5.9±0.12µs | 7.0±0.03µs | **+18.64%** | | ops/map/jwst/remove | 6.4±0.07µs | 6.5±0.02µs | **+1.56%** | | ops/map/yrs/get | 276.9±5.77ns | 274.1±4.25ns | -1.01% | | ops/map/yrs/insert | 5.7±0.02µs | 6.5±0.04µs | **+14.04%** | | ops/map/yrs/remove | 7.0±0.02µs | 7.3±0.02µs | **+4.29%** | | ops/text/jwst/insert | 88.6±1.17µs | 87.2±0.67µs | **-1.58%** | | ops/text/jwst/remove | 2.5±0.02µs | 2.5±0.03µs | -0.00% | | ops/text/yrs/insert | 32.6±0.23µs | 32.3±0.11µs | **-0.92%** | | ops/text/yrs/remove | 2.6±0.02µs | 2.5±0.01µs | **-3.85%** | | update/parse with jwst/basic.bin | 55.8±1.50µs | 53.8±0.69µs | **-3.58%** | | update/parse with jwst/database.bin | 41.5±0.21µs | 42.4±0.24µs | **+2.17%** | | update/parse with jwst/large.bin | 2.6±0.07ms | 2.8±0.11ms | **+7.69%** | | update/parse with jwst/with-subdoc.bin | 8.1±0.04µs | 8.0±0.04µs | **-1.23%** | | update/parse with yrs/basic.bin | 44.2±0.23µs | 44.7±0.23µs | **+1.13%** | | update/parse with yrs/database.bin | 35.6±0.14µs | 33.7±0.20µs | **-5.34%** | | update/parse with yrs/large.bin | 2.1±0.09ms | 2.2±0.08ms | **+4.76%** | | update/parse with yrs/with-subdoc.bin | 7.1±0.06µs | 6.8±0.06µs | **-4.23%** |