y-crdt / y-octo

CRDT implementation which is compatible with https://github.com/yjs/yjs
https://octobase.pro/
Other
187 stars 5 forks source link

chore: sync octobase's update #25

Closed darkskygit closed 12 months ago

github-actions[bot] commented 12 months ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 334.3±2.07µs | 347.3±2.31µs | **+3.89%** | | codec/jwst decode var_uint (32 bit) | 288.6±0.48µs | 287.1±0.65µs | **-0.52%** | | codec/jwst decode var_uint (64 bit) | 309.8±1.42µs | 310.9±2.98µs | **+0.36%** | | codec/jwst encode var_int (32 bit) | 409.1±1.29µs | 425.2±2.25µs | **+3.94%** | | codec/jwst encode var_uint (32 bit) | 277.1±5.78µs | 282.4±1.51µs | **+1.91%** | | codec/jwst encode var_uint (64 bit) | 270.7±2.28µs | 273.5±2.03µs | **+1.03%** | | codec/lib0 decode var_int (64 bit) | 268.4±0.24µs | 277.0±1.27µs | **+3.20%** | | codec/lib0 decode var_uint (32 bit) | 239.9±2.23µs | 264.0±4.44µs | **+10.05%** | | codec/lib0 decode var_uint (64 bit) | 234.4±1.88µs | 271.9±4.86µs | **+16.00%** | | codec/lib0 encode var_int (64 bit) | 389.6±1.91µs | 389.9±0.91µs | **+0.08%** | | codec/lib0 encode var_uint (32 bit) | 289.8±4.69µs | 379.5±4.37µs | **+30.95%** | | codec/lib0 encode var_uint (64 bit) | 346.4±2.86µs | 342.1±0.68µs | **-1.24%** | | ops/array/jwst/insert | 263.1±1.89µs | 262.0±0.43µs | **-0.42%** | | ops/array/jwst/insert range | 387.7±0.31µs | 390.1±0.63µs | **+0.62%** | | ops/array/jwst/remove | 169.2±0.29µs | 169.7±0.22µs | **+0.30%** | | ops/array/yrs/insert | 80.8±0.67µs | 79.3±0.14µs | **-1.86%** | | ops/array/yrs/insert range | 104.3±0.38µs | 104.1±1.52µs | **-0.19%** | | ops/array/yrs/remove | 97.3±0.22µs | 94.9±0.65µs | **-2.47%** | | ops/text/jwst/insert | 136.9±0.41µs | 136.2±0.23µs | **-0.51%** | | ops/text/jwst/remove | 3.3±0.00µs | 3.5±0.00µs | **+6.06%** | | ops/text/yrs/insert | 36.7±0.02µs | 35.9±0.03µs | **-2.18%** | | ops/text/yrs/remove | 2.3±0.01µs | 2.3±0.01µs | -0.00% | | update/parse with jwst/basic.bin | 67.0±0.05µs | 67.5±0.08µs | **+0.75%** | | update/parse with jwst/database.bin | 54.2±0.02µs | 55.0±0.06µs | **+1.48%** | | update/parse with jwst/large.bin | 5.1±0.01ms | 5.1±0.02ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 6.3±0.02µs | 6.3±0.02µs | -0.00% | | update/parse with yrs/basic.bin | 41.7±0.08µs | 41.3±0.24µs | **-0.96%** | | update/parse with yrs/database.bin | 33.6±0.03µs | 33.4±0.27µs | **-0.60%** | | update/parse with yrs/large.bin | 3.1±0.01ms | 3.1±0.01ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 6.2±0.02µs | 6.1±0.07µs | **-1.61%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 433.8±12.69µs | 563.9±17.63µs | **+29.99%** | | codec/jwst decode var_uint (32 bit) | 530.3±19.57µs | 526.6±17.58µs | -0.70% | | codec/jwst decode var_uint (64 bit) | 585.7±21.01µs | 384.0±10.64µs | **-34.44%** | | codec/jwst encode var_int (32 bit) | 554.7±16.11µs | 562.6±18.45µs | +1.42% | | codec/jwst encode var_uint (32 bit) | 357.1±9.67µs | 399.7±13.66µs | **+11.93%** | | codec/jwst encode var_uint (64 bit) | 361.1±13.13µs | 398.4±15.83µs | **+10.33%** | | codec/lib0 decode var_int (64 bit) | 349.1±9.43µs | 348.6±9.36µs | -0.14% | | codec/lib0 decode var_uint (32 bit) | 294.0±10.85µs | 292.6±8.25µs | -0.48% | | codec/lib0 decode var_uint (64 bit) | 291.4±9.86µs | 291.9±8.36µs | +0.17% | | codec/lib0 encode var_int (64 bit) | 717.2±25.30µs | 714.0±19.31µs | -0.45% | | codec/lib0 encode var_uint (32 bit) | 490.3±22.05µs | 481.3±14.74µs | -1.84% | | codec/lib0 encode var_uint (64 bit) | 467.4±14.13µs | 464.9±13.09µs | -0.53% | | ops/array/jwst/insert | 362.4±16.76µs | 360.6±8.51µs | -0.50% | | ops/array/jwst/insert range | 499.5±12.08µs | 504.5±10.82µs | +1.00% | | ops/array/jwst/remove | 205.9±6.68µs | 204.5±3.92µs | -0.68% | | ops/array/yrs/insert | 127.2±4.30µs | 129.1±2.97µs | +1.49% | | ops/array/yrs/insert range | 177.2±4.26µs | 178.9±4.39µs | +0.96% | | ops/array/yrs/remove | 187.5±3.56µs | 189.8±4.73µs | +1.23% | | ops/text/jwst/insert | 211.1±4.07µs | 213.3±4.82µs | +1.04% | | ops/text/jwst/remove | 4.4±0.09µs | 4.8±0.11µs | **+9.09%** | | ops/text/yrs/insert | 55.6±1.15µs | 56.3±1.13µs | +1.26% | | ops/text/yrs/remove | 4.5±0.11µs | 4.4±0.12µs | **-2.22%** | | update/parse with jwst/basic.bin | 121.6±3.01µs | 117.2±3.19µs | **-3.62%** | | update/parse with jwst/database.bin | 91.0±1.97µs | 92.7±1.69µs | **+1.87%** | | update/parse with jwst/large.bin | 5.5±0.15ms | 5.5±0.21ms | -0.00% | | update/parse with jwst/with-subdoc.bin | 17.7±0.33µs | 19.0±0.40µs | **+7.34%** | | update/parse with yrs/basic.bin | 81.4±2.17µs | 80.7±1.57µs | -0.86% | | update/parse with yrs/database.bin | 64.5±1.09µs | 62.0±1.12µs | **-3.88%** | | update/parse with yrs/large.bin | 3.7±0.22ms | 3.8±0.19ms | **+2.70%** | | update/parse with yrs/with-subdoc.bin | 14.3±0.32µs | 13.9±0.45µs | **-2.80%** |