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

fix(codec): replace any::integer repr with i32 #515

Closed forehalo 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 Aug 18, 2023 11:46am
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 51.63% and project coverage change: +0.18% :tada:

Comparison is base (fccbeb4) 64.43% compared to head (59c96e2) 64.62%. Report is 4 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #515 +/- ## ========================================== + Coverage 64.43% 64.62% +0.18% ========================================== Files 184 184 Lines 22614 20959 -1655 ========================================== - Hits 14572 13544 -1028 + Misses 8042 7415 -627 ``` | [Files Changed](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [apps/cloud/src/layer.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9jbG91ZC9zcmMvbGF5ZXIucnM=) | `25.39% <0.00%> (+0.78%)` | :arrow_up: | | [apps/cloud/src/main.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9jbG91ZC9zcmMvbWFpbi5ycw==) | `2.77% <0.00%> (+0.45%)` | :arrow_up: | | [apps/doc\_merger/src/main.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9kb2NfbWVyZ2VyL3NyYy9tYWluLnJz) | `0.00% <0.00%> (ø)` | | | [apps/keck/src/server/api/blocks/block.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvYXBpL2Jsb2Nrcy9ibG9jay5ycw==) | `34.53% <0.00%> (+1.46%)` | :arrow_up: | | [apps/keck/src/server/api/doc.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvYXBpL2RvYy5ycw==) | `87.50% <ø> (ø)` | | | [apps/keck/src/server/mod.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvbW9kLnJz) | `0.00% <0.00%> (ø)` | | | [apps/keck/src/server/subscribe.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvc3Vic2NyaWJlLnJz) | `15.25% <0.00%> (+0.96%)` | :arrow_up: | | [apps/keck/src/server/sync/blobs.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvc3luYy9ibG9icy5ycw==) | `0.00% <0.00%> (ø)` | | | [apps/keck/src/server/sync/collaboration.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvc3luYy9jb2xsYWJvcmF0aW9uLnJz) | `0.00% <0.00%> (ø)` | | | [apps/keck/src/server/sync/mod.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-YXBwcy9rZWNrL3NyYy9zZXJ2ZXIvc3luYy9tb2QucnM=) | `0.00% <0.00%> (ø)` | | | ... and [125 more](https://app.codecov.io/gh/toeverything/OctoBase/pull/515?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 year ago

Benchmark Results

Linux

group                                     master                                 pr
-----                                     ------                                 --
codec/jwst decode var_int (32 bit)        1.00    359.6±4.00µs        ? ?/sec    1.00    357.9±4.13µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.00    273.8±1.02µs        ? ?/sec    1.00    274.0±1.15µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.00    278.5±1.34µs        ? ?/sec    1.00    279.2±1.51µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.01    513.8±8.61µs        ? ?/sec    1.00    509.0±8.68µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00    377.4±0.58µs        ? ?/sec    1.00    377.4±1.32µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.00    377.4±0.66µs        ? ?/sec    1.00    377.5±0.80µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.00    268.6±0.43µs        ? ?/sec    1.00    268.6±0.39µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.00    253.8±3.42µs        ? ?/sec    1.04   263.8±26.96µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.00    244.7±2.68µs        ? ?/sec    1.00    243.5±3.99µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.00   428.4±10.36µs        ? ?/sec    1.05    449.9±4.69µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.00    377.2±0.65µs        ? ?/sec    1.07    403.9±4.71µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00    341.9±0.36µs        ? ?/sec    1.00    342.0±0.67µs        ? ?/sec
ops/array/jwst/insert                     1.01    397.5±3.58µs        ? ?/sec    1.00    394.1±2.43µs        ? ?/sec
ops/array/jwst/insert range               1.00    534.8±0.52µs        ? ?/sec    1.00    534.0±0.68µs        ? ?/sec
ops/array/jwst/remove                     1.00    276.7±0.45µs        ? ?/sec    1.00    278.0±0.15µs        ? ?/sec
ops/array/yrs/insert                      1.01     88.2±0.06µs        ? ?/sec    1.00     87.6±0.14µs        ? ?/sec
ops/array/yrs/insert range                1.01    111.8±0.57µs        ? ?/sec    1.00    110.2±0.54µs        ? ?/sec
ops/array/yrs/remove                      1.00     96.5±0.85µs        ? ?/sec    1.00     96.6±0.27µs        ? ?/sec
ops/text/jwst/insert                      1.00    146.9±0.69µs        ? ?/sec    1.01    148.1±0.36µs        ? ?/sec
ops/text/jwst/remove                      1.00      3.2±0.00µs        ? ?/sec    1.00      3.2±0.02µs        ? ?/sec
ops/text/yrs/insert                       1.01     41.7±0.05µs        ? ?/sec    1.00     41.4±0.26µs        ? ?/sec
ops/text/yrs/remove                       1.00      2.4±0.01µs        ? ?/sec    1.01      2.5±0.01µs        ? ?/sec
update/parse with jwst/basic.bin          1.05     69.7±0.34µs    78.3 MB/sec    1.00     66.1±0.08µs    82.6 MB/sec
update/parse with jwst/database.bin       1.05     56.6±0.04µs    58.5 MB/sec    1.00     53.9±0.04µs    61.5 MB/sec
update/parse with jwst/large.bin          1.04      3.7±0.01ms    61.8 MB/sec    1.00      3.5±0.01ms    64.5 MB/sec
update/parse with jwst/with-subdoc.bin    1.09      6.7±0.02µs   104.4 MB/sec    1.00      6.1±0.02µs   113.9 MB/sec
update/parse with yrs/basic.bin           1.02     41.9±0.34µs   130.2 MB/sec    1.00     41.1±0.23µs   133.0 MB/sec
update/parse with yrs/database.bin        1.02     33.7±0.07µs    98.3 MB/sec    1.00     33.2±0.04µs    99.9 MB/sec
update/parse with yrs/large.bin           1.01      2.1±0.00ms   107.0 MB/sec    1.00      2.1±0.00ms   108.0 MB/sec
update/parse with yrs/with-subdoc.bin     1.16      6.0±0.15µs   116.4 MB/sec    1.00      5.2±0.01µs   135.2 MB/sec

Windows

group                                     master                                 pr
-----                                     ------                                 --
codec/jwst decode var_int (32 bit)        1.01   435.2±12.85µs        ? ?/sec    1.00   429.3±18.79µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.00   520.4±18.09µs        ? ?/sec    1.02   530.9±19.63µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.05   386.0±11.70µs        ? ?/sec    1.00   367.8±19.48µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.00   562.9±20.88µs        ? ?/sec    1.00   560.9±18.63µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.01   354.7±12.09µs        ? ?/sec    1.00   351.4±13.64µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.04   351.9±12.28µs        ? ?/sec    1.00   338.6±12.76µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.06   526.3±15.84µs        ? ?/sec    1.00   496.8±18.75µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.02    286.8±9.41µs        ? ?/sec    1.00    280.1±8.43µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.02    288.1±9.16µs        ? ?/sec    1.00   283.4±11.59µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.04   724.6±29.60µs        ? ?/sec    1.00   694.8±23.09µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.08   474.1±14.02µs        ? ?/sec    1.00   440.9±17.05µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00   487.1±13.72µs        ? ?/sec    1.00   484.7±16.63µs        ? ?/sec
ops/array/jwst/insert                     1.02   488.2±14.17µs        ? ?/sec    1.00   478.2±14.61µs        ? ?/sec
ops/array/jwst/insert range               1.02   645.7±19.70µs        ? ?/sec    1.00   633.3±17.01µs        ? ?/sec
ops/array/jwst/remove                     1.04   317.8±11.37µs        ? ?/sec    1.00   305.6±11.99µs        ? ?/sec
ops/array/yrs/insert                      1.00    126.4±3.65µs        ? ?/sec    1.02    129.3±5.81µs        ? ?/sec
ops/array/yrs/insert range                1.00    177.4±6.09µs        ? ?/sec    1.03    182.1±9.86µs        ? ?/sec
ops/array/yrs/remove                      1.06    187.5±6.67µs        ? ?/sec    1.00    177.5±5.07µs        ? ?/sec
ops/text/jwst/insert                      1.04    216.5±8.46µs        ? ?/sec    1.00    208.4±7.74µs        ? ?/sec
ops/text/jwst/remove                      1.00      5.4±0.15µs        ? ?/sec    1.01      5.5±0.18µs        ? ?/sec
ops/text/yrs/insert                       1.05     59.4±1.77µs        ? ?/sec    1.00     56.6±2.18µs        ? ?/sec
ops/text/yrs/remove                       1.16      5.8±0.14µs        ? ?/sec    1.00      5.0±0.17µs        ? ?/sec
update/parse with jwst/basic.bin          1.00    114.5±3.58µs    47.7 MB/sec    1.07    123.0±3.01µs    44.4 MB/sec
update/parse with jwst/database.bin       1.00     89.1±3.26µs    37.2 MB/sec    1.04     92.7±2.70µs    35.7 MB/sec
update/parse with jwst/large.bin          1.00      5.4±0.17ms    42.4 MB/sec    1.01      5.4±0.19ms    42.2 MB/sec
update/parse with jwst/with-subdoc.bin    1.05     17.1±0.47µs    40.9 MB/sec    1.00     16.4±0.46µs    42.8 MB/sec
update/parse with yrs/basic.bin           1.00     78.6±2.68µs    69.5 MB/sec    1.04     81.9±2.95µs    66.6 MB/sec
update/parse with yrs/database.bin        1.06     63.9±1.40µs    51.8 MB/sec    1.00     60.3±1.32µs    54.9 MB/sec
update/parse with yrs/large.bin           1.00      3.6±0.14ms    62.7 MB/sec    1.01      3.7±0.14ms    62.1 MB/sec
update/parse with yrs/with-subdoc.bin     1.02     14.2±0.45µs    49.4 MB/sec    1.00     13.9±0.75µs    50.2 MB/sec