y-crdt / y-octo

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

docs: add yrs comparison #15

Closed Brooooooklyn closed 1 year ago

github-actions[bot] commented 1 year ago

Benchmark for Linux

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 332.5±0.90µs | 333.0±1.10µs | **+0.15%** | | codec/jwst decode var_uint (32 bit) | 285.9±1.35µs | 285.9±0.75µs | -0.00% | | codec/jwst decode var_uint (64 bit) | 308.2±0.33µs | 308.1±0.10µs | **-0.03%** | | codec/jwst encode var_int (32 bit) | 424.3±1.93µs | 426.5±1.73µs | **+0.52%** | | codec/jwst encode var_uint (32 bit) | 375.1±0.08µs | 375.1±0.14µs | -0.00% | | codec/jwst encode var_uint (64 bit) | 375.2±0.92µs | 375.1±0.06µs | **-0.03%** | | codec/lib0 decode var_int (64 bit) | 268.5±0.36µs | 268.5±0.31µs | -0.00% | | codec/lib0 decode var_uint (32 bit) | 261.0±2.92µs | 260.5±3.19µs | -0.19% | | codec/lib0 decode var_uint (64 bit) | 266.2±2.79µs | 265.8±2.37µs | -0.15% | | codec/lib0 encode var_int (64 bit) | 411.1±4.45µs | 419.5±4.33µs | **+2.04%** | | codec/lib0 encode var_uint (32 bit) | 380.3±0.83µs | 379.0±1.02µs | **-0.34%** | | codec/lib0 encode var_uint (64 bit) | 375.7±0.41µs | 377.2±0.72µs | **+0.40%** | | ops/array/jwst/insert | 373.3±8.58µs | 375.6±0.71µs | **+0.62%** | | ops/array/jwst/insert range | 505.7±1.37µs | 511.3±0.15µs | **+1.11%** | | ops/array/jwst/remove | 262.2±0.24µs | 264.2±0.13µs | **+0.76%** | | ops/array/yrs/insert | 80.1±0.19µs | 80.2±0.20µs | **+0.12%** | | ops/array/yrs/insert range | 105.5±0.90µs | 103.8±0.21µs | **-1.61%** | | ops/array/yrs/remove | 91.7±0.26µs | 96.5±0.46µs | **+5.23%** | | ops/text/jwst/insert | 143.8±0.69µs | 143.4±0.74µs | **-0.28%** | | ops/text/jwst/remove | 3.2±0.00µs | 3.2±0.00µs | -0.00% | | ops/text/yrs/insert | 36.3±0.04µs | 36.0±0.12µs | **-0.83%** | | ops/text/yrs/remove | 2.3±0.04µs | 2.3±0.00µs | -0.00% | | update/parse with jwst/basic.bin | 65.3±0.05µs | 66.3±0.02µs | **+1.53%** | | update/parse with jwst/database.bin | 53.0±0.02µs | 53.7±0.04µs | **+1.32%** | | update/parse with jwst/large.bin | 4.8±0.01ms | 4.9±0.00ms | **+2.08%** | | update/parse with jwst/with-subdoc.bin | 6.1±0.04µs | 6.2±0.00µs | **+1.64%** | | update/parse with yrs/basic.bin | 41.7±0.30µs | 42.1±0.07µs | **+0.96%** | | update/parse with yrs/database.bin | 33.3±0.01µs | 33.9±0.01µs | **+1.80%** | | update/parse with yrs/large.bin | 3.1±0.01ms | 3.1±0.00ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 5.3±0.00µs | 6.2±0.00µs | **+16.98%** |

Benchmark for Windows

Click to view benchmark | Test | Base | PR | % | | --- | --- | --- | --- | | codec/jwst decode var_int (32 bit) | 366.4±6.20µs | 365.7±6.00µs | -0.19% | | codec/jwst decode var_uint (32 bit) | 400.6±5.46µs | 399.1±4.60µs | -0.37% | | codec/jwst decode var_uint (64 bit) | 324.8±4.51µs | 323.0±3.63µs | -0.55% | | codec/jwst encode var_int (32 bit) | 444.0±6.83µs | 439.2±5.99µs | -1.08% | | codec/jwst encode var_uint (32 bit) | 383.2±5.36µs | 386.7±5.05µs | +0.91% | | codec/jwst encode var_uint (64 bit) | 383.0±5.43µs | 386.1±5.27µs | +0.81% | | codec/lib0 decode var_int (64 bit) | 293.7±4.61µs | 291.0±4.00µs | -0.92% | | codec/lib0 decode var_uint (32 bit) | 356.3±4.92µs | 354.4±3.98µs | -0.53% | | codec/lib0 decode var_uint (64 bit) | 244.7±9.16µs | 242.8±3.00µs | -0.78% | | codec/lib0 encode var_int (64 bit) | 584.4±12.38µs | 575.5±8.29µs | **-1.52%** | | codec/lib0 encode var_uint (32 bit) | 405.0±6.47µs | 399.3±6.44µs | -1.41% | | codec/lib0 encode var_uint (64 bit) | 415.6±5.06µs | 415.0±4.89µs | -0.14% | | ops/array/jwst/insert | 408.9±5.12µs | 406.4±4.53µs | -0.61% | | ops/array/jwst/insert range | 538.9±10.43µs | 535.9±5.01µs | -0.56% | | ops/array/jwst/remove | 265.1±2.76µs | 263.4±3.84µs | -0.64% | | ops/array/yrs/insert | 109.8±1.39µs | 111.0±1.05µs | **+1.09%** | | ops/array/yrs/insert range | 156.3±2.58µs | 152.9±1.69µs | **-2.18%** | | ops/array/yrs/remove | 159.9±1.90µs | 165.5±1.89µs | **+3.50%** | | ops/text/jwst/insert | 189.2±3.39µs | 186.1±2.19µs | **-1.64%** | | ops/text/jwst/remove | 4.0±0.04µs | 4.6±0.05µs | **+15.00%** | | ops/text/yrs/insert | 46.8±0.68µs | 47.3±0.57µs | **+1.07%** | | ops/text/yrs/remove | 3.9±0.04µs | 4.7±0.06µs | **+20.51%** | | update/parse with jwst/basic.bin | 98.5±1.19µs | 100.0±1.56µs | **+1.52%** | | update/parse with jwst/database.bin | 77.9±0.84µs | 78.5±1.04µs | **+0.77%** | | update/parse with jwst/large.bin | 4.9±0.14ms | 5.0±0.19ms | **+2.04%** | | update/parse with jwst/with-subdoc.bin | 15.9±0.16µs | 14.7±0.12µs | **-7.55%** | | update/parse with yrs/basic.bin | 67.7±0.71µs | 68.7±0.73µs | **+1.48%** | | update/parse with yrs/database.bin | 51.7±0.58µs | 52.6±0.80µs | **+1.74%** | | update/parse with yrs/large.bin | 3.2±0.08ms | 3.2±0.11ms | -0.00% | | update/parse with yrs/with-subdoc.bin | 11.7±0.17µs | 11.6±0.17µs | **-0.85%** |