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.38k stars 91 forks source link

feat: swift binding runtime verify for yrs & jwst #509

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 Aug 14, 2023 9:48am
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 31.42% and project coverage change: -0.13% :warning:

Comparison is base (3d3f504) 65.52% compared to head (13ae0e4) 65.39%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #509 +/- ## ========================================== - Coverage 65.52% 65.39% -0.13% ========================================== Files 180 183 +3 Lines 22005 22097 +92 ========================================== + Hits 14418 14450 +32 - Misses 7587 7647 +60 ``` | [Files Changed](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [libs/jwst-binding/jwst-swift/src/block.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvYmxvY2sucnM=) | `0.00% <0.00%> (ø)` | | | [libs/jwst-binding/jwst-swift/src/difflog.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvZGlmZmxvZy5ycw==) | `0.00% <0.00%> (ø)` | | | [libs/jwst-binding/jwst-swift/src/lib.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvbGliLnJz) | `0.00% <ø> (ø)` | | | [libs/jwst-binding/jwst-swift/src/storage.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvc3RvcmFnZS5ycw==) | `0.00% <0.00%> (ø)` | | | [libs/jwst-binding/jwst-swift/src/workspace.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWJpbmRpbmcvandzdC1zd2lmdC9zcmMvd29ya3NwYWNlLnJz) | `0.00% <0.00%> (ø)` | | | [libs/jwst-storage/src/entities/blobs.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LXN0b3JhZ2Uvc3JjL2VudGl0aWVzL2Jsb2JzLnJz) | `50.00% <ø> (ø)` | | | [libs/jwst-storage/src/entities/bucket\_blobs.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LXN0b3JhZ2Uvc3JjL2VudGl0aWVzL2J1Y2tldF9ibG9icy5ycw==) | `0.00% <ø> (ø)` | | | [libs/jwst-storage/src/entities/diff\_log.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LXN0b3JhZ2Uvc3JjL2VudGl0aWVzL2RpZmZfbG9nLnJz) | `0.00% <0.00%> (ø)` | | | [libs/jwst-storage/src/entities/docs.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LXN0b3JhZ2Uvc3JjL2VudGl0aWVzL2RvY3MucnM=) | `50.00% <ø> (ø)` | | | [libs/jwst-storage/src/entities/optimized\_blobs.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LXN0b3JhZ2Uvc3JjL2VudGl0aWVzL29wdGltaXplZF9ibG9icy5ycw==) | `50.00% <ø> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/toeverything/OctoBase/pull/509?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/toeverything/OctoBase/pull/509/indirect-changes?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.10    469.1±4.30µs        ? ?/sec    1.00    428.1±5.35µs        ? ?/sec
codec/jwst decode var_int (64 bit)        1.00    390.2±3.44µs        ? ?/sec    1.00    388.6±4.23µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.39    458.2±3.96µs        ? ?/sec    1.00    330.7±4.00µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.28    435.0±5.75µs        ? ?/sec    1.00    340.0±3.57µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.00    594.6±7.07µs        ? ?/sec    1.05    621.7±7.85µs        ? ?/sec
codec/jwst encode var_int (64 bit)        1.00    601.0±6.68µs        ? ?/sec    1.15    689.6±8.40µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00    348.7±2.92µs        ? ?/sec    1.28    446.9±3.85µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.00    346.3±3.37µs        ? ?/sec    1.28    442.9±4.19µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.42    504.5±5.65µs        ? ?/sec    1.00    354.6±3.83µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.00    455.3±4.99µs        ? ?/sec    1.09    495.8±4.67µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.00    286.0±2.33µs        ? ?/sec    1.00    285.0±3.31µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.00   536.9±21.52µs        ? ?/sec    1.04    556.4±8.10µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.07    455.9±4.02µs        ? ?/sec    1.00    424.7±3.25µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00    445.0±4.72µs        ? ?/sec    1.00    444.8±4.59µs        ? ?/sec
ops/array/jwst/insert                     1.02   458.1±24.91µs        ? ?/sec    1.00    449.3±4.61µs        ? ?/sec
ops/array/jwst/insert range               1.00   606.4±12.36µs        ? ?/sec    1.00    608.4±4.73µs        ? ?/sec
ops/array/jwst/remove                     1.00    304.1±2.73µs        ? ?/sec    1.02    309.1±3.00µs        ? ?/sec
ops/array/yrs/insert                      1.04    109.0±1.07µs        ? ?/sec    1.00    105.2±0.69µs        ? ?/sec
ops/array/yrs/insert range                1.00    133.0±1.08µs        ? ?/sec    1.02    135.7±1.64µs        ? ?/sec
ops/array/yrs/remove                      1.01    122.4±0.81µs        ? ?/sec    1.00    120.8±0.94µs        ? ?/sec
ops/text/jwst/insert                      1.00    182.5±2.45µs        ? ?/sec    1.07    194.9±6.85µs        ? ?/sec
ops/text/jwst/remove                      1.00      3.5±0.03µs        ? ?/sec    1.00      3.5±0.02µs        ? ?/sec
ops/text/yrs/insert                       1.00     52.0±0.40µs        ? ?/sec    1.00     52.1±0.33µs        ? ?/sec
ops/text/yrs/remove                       1.06      3.0±0.02µs        ? ?/sec    1.00      2.9±0.02µs        ? ?/sec
update/parse with jwst/basic.bin          1.00     81.0±0.66µs    67.4 MB/sec    1.03     83.6±0.52µs    65.3 MB/sec
update/parse with jwst/database.bin       1.00     64.8±0.48µs    51.1 MB/sec    1.03     66.9±0.59µs    49.5 MB/sec
update/parse with jwst/large.bin          1.00      4.2±0.04ms    54.1 MB/sec    1.05      4.4±0.03ms    51.5 MB/sec
update/parse with jwst/with-subdoc.bin    1.00      7.7±0.06µs    90.5 MB/sec    1.03      8.0±0.05µs    88.0 MB/sec
update/parse with yrs/basic.bin           1.00     52.3±0.45µs   104.4 MB/sec    1.01     52.8±0.44µs   103.5 MB/sec
update/parse with yrs/database.bin        1.01     42.6±0.40µs    77.8 MB/sec    1.00     42.0±0.36µs    78.9 MB/sec
update/parse with yrs/large.bin           1.00      2.6±0.02ms    86.8 MB/sec    1.01      2.7±0.02ms    86.2 MB/sec
update/parse with yrs/with-subdoc.bin     1.04      7.9±0.06µs    89.0 MB/sec    1.00      7.5±0.05µs    93.0 MB/sec

Windows

group                                     master                                 pr
-----                                     ------                                 --
codec/jwst decode var_int (32 bit)        1.03   428.6±21.51µs        ? ?/sec    1.00   416.5±25.15µs        ? ?/sec
codec/jwst decode var_int (64 bit)        1.00   411.3±24.09µs        ? ?/sec    1.03   423.8±21.96µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.00   360.4±20.64µs        ? ?/sec    1.04   374.7±17.02µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.06   394.9±16.34µs        ? ?/sec    1.00   373.9±22.35µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.00   495.8±22.89µs        ? ?/sec    1.03   508.2±32.86µs        ? ?/sec
codec/jwst encode var_int (64 bit)        1.00   472.1±26.67µs        ? ?/sec    1.06   498.9±30.23µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00   329.7±18.97µs        ? ?/sec    1.01   332.6±17.96µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.00   334.8±24.39µs        ? ?/sec    1.02   342.8±16.22µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.00   344.9±18.38µs        ? ?/sec    1.01   347.1±17.54µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.00   258.1±14.41µs        ? ?/sec    1.13   291.7±17.13µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.00   275.5±13.79µs        ? ?/sec    1.07   296.0±16.70µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.07   528.7±32.25µs        ? ?/sec    1.00   495.8±29.53µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.00   338.1±24.00µs        ? ?/sec    1.05   356.3±19.33µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00   317.7±19.72µs        ? ?/sec    1.09   345.3±19.85µs        ? ?/sec
ops/array/jwst/insert                     1.01   500.8±21.66µs        ? ?/sec    1.00   493.8±20.28µs        ? ?/sec
ops/array/jwst/insert range               1.00   628.4±27.14µs        ? ?/sec    1.04   653.0±30.56µs        ? ?/sec
ops/array/jwst/remove                     1.02   321.9±12.51µs        ? ?/sec    1.00   316.2±10.53µs        ? ?/sec
ops/array/yrs/insert                      1.00    124.3±8.77µs        ? ?/sec    1.07    133.4±5.16µs        ? ?/sec
ops/array/yrs/insert range                1.00   184.5±10.93µs        ? ?/sec    1.03    190.9±7.20µs        ? ?/sec
ops/array/yrs/remove                      1.00   191.6±12.56µs        ? ?/sec    1.02   194.6±10.06µs        ? ?/sec
ops/text/jwst/insert                      1.00   221.0±13.23µs        ? ?/sec    1.03    227.4±9.75µs        ? ?/sec
ops/text/jwst/remove                      1.03      5.6±0.38µs        ? ?/sec    1.00      5.5±0.36µs        ? ?/sec
ops/text/yrs/insert                       1.00     54.2±2.69µs        ? ?/sec    1.06     57.5±2.51µs        ? ?/sec
ops/text/yrs/remove                       1.00      5.4±0.30µs        ? ?/sec    1.00      5.3±0.23µs        ? ?/sec
update/parse with jwst/basic.bin          1.00    122.1±8.15µs    44.7 MB/sec    1.01    123.0±7.53µs    44.4 MB/sec
update/parse with jwst/database.bin       1.04     95.1±5.91µs    34.8 MB/sec    1.00     91.4±4.85µs    36.3 MB/sec
update/parse with jwst/large.bin          1.00      5.7±0.36ms    39.9 MB/sec    1.07      6.1±0.39ms    37.4 MB/sec
update/parse with jwst/with-subdoc.bin    1.00     17.8±0.83µs    39.2 MB/sec    1.04     18.6±1.16µs    37.6 MB/sec
update/parse with yrs/basic.bin           1.03     77.8±5.25µs    70.2 MB/sec    1.00     75.4±3.92µs    72.4 MB/sec
update/parse with yrs/database.bin        1.04     64.9±2.74µs    51.1 MB/sec    1.00     62.3±5.64µs    53.2 MB/sec
update/parse with yrs/large.bin           1.00      3.9±0.20ms    59.2 MB/sec    1.00      3.9±0.27ms    59.1 MB/sec
update/parse with yrs/with-subdoc.bin     1.04     12.8±0.72µs    54.8 MB/sec    1.00     12.2±0.86µs    57.1 MB/sec