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.33k stars 83 forks source link

feat: add memory check ci #481

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 Jun 30, 2023 6:11pm
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 48.35% and project coverage change: -0.07 :warning:

Comparison is base (ee488e7) 67.97% compared to head (08528bc) 67.90%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #481 +/- ## ========================================== - Coverage 67.97% 67.90% -0.07% ========================================== Files 166 166 Lines 18704 18772 +68 ========================================== + Hits 12714 12748 +34 - Misses 5990 6024 +34 ``` | [Impacted Files](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [libs/jwst-codec/bin/memory\_leak\_test.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL2Jpbi9tZW1vcnlfbGVha190ZXN0LnJz) | `1.53% <0.00%> (-0.35%)` | :arrow_down: | | [libs/jwst-codec/src/doc/types/mod.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvdHlwZXMvbW9kLnJz) | `71.69% <0.00%> (-8.44%)` | :arrow_down: | | [libs/jwst-codec/src/doc/store.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2Mvc3RvcmUucnM=) | `84.00% <50.00%> (-0.63%)` | :arrow_down: | | [libs/jwst-codec/src/doc/codec/refs.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvY29kZWMvcmVmcy5ycw==) | `79.86% <62.50%> (-0.70%)` | :arrow_down: | | [libs/jwst-codec/src/doc/types/list/mod.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvdHlwZXMvbGlzdC9tb2QucnM=) | `87.13% <66.66%> (-1.36%)` | :arrow_down: | | [libs/jwst-codec/src/doc/codec/content.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvY29kZWMvY29udGVudC5ycw==) | `78.91% <74.28%> (-1.15%)` | :arrow_down: | | [libs/jwst-codec/src/doc/codec/item.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvY29kZWMvaXRlbS5ycw==) | `74.53% <100.00%> (+0.07%)` | :arrow_up: | | [libs/jwst-codec/src/doc/types/map.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/481?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvdHlwZXMvbWFwLnJz) | `92.81% <100.00%> (ø)` | | ... and [7 files with indirect coverage changes](https://app.codecov.io/gh/toeverything/OctoBase/pull/481/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: Do you have feedback about the report comment? Let us know in this issue.

github-actions[bot] commented 1 year ago

Benchmark Results

Linux

group                                  master                                 pr
-----                                  ------                                 --
codec/jwst decode var_int (32 bit)     1.00    314.8±0.80µs        ? ?/sec    1.00    314.7±0.21µs        ? ?/sec
codec/jwst decode var_int (64 bit)     1.02    378.9±6.45µs        ? ?/sec    1.00    371.4±9.06µs        ? ?/sec
codec/jwst decode var_uint (32 bit)    1.00    274.7±1.39µs        ? ?/sec    1.01    276.4±0.88µs        ? ?/sec
codec/jwst decode var_uint (64 bit)    1.00    308.3±0.61µs        ? ?/sec    1.00    308.1±0.31µs        ? ?/sec
codec/jwst encode var_int (32 bit)     1.00    392.4±1.14µs        ? ?/sec    1.00    392.2±1.06µs        ? ?/sec
codec/jwst encode var_int (64 bit)     1.01    412.5±7.49µs        ? ?/sec    1.00    409.5±8.18µs        ? ?/sec
codec/jwst encode var_uint (32 bit)    1.00    375.5±1.34µs        ? ?/sec    1.00    375.4±0.11µs        ? ?/sec
codec/jwst encode var_uint (64 bit)    1.00    375.3±0.10µs        ? ?/sec    1.00    375.4±0.28µs        ? ?/sec
codec/lib0 decode var_int (64 bit)     1.00    276.7±1.70µs        ? ?/sec    1.00    275.5±1.01µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)    1.01    250.5±3.46µs        ? ?/sec    1.00    247.1±2.72µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)    1.00    285.5±4.13µs        ? ?/sec    1.01    287.3±4.65µs        ? ?/sec
codec/lib0 encode var_int (64 bit)     1.00    433.2±5.74µs        ? ?/sec    1.01    438.7±3.97µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)    1.03    309.9±3.95µs        ? ?/sec    1.00    301.0±4.80µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)    1.04    315.1±3.26µs        ? ?/sec    1.00    302.6±2.76µs        ? ?/sec
ops/array/jwst/insert                  1.00    400.8±0.58µs        ? ?/sec    1.00    400.4±1.46µs        ? ?/sec
ops/array/jwst/insert range            1.02    717.0±0.30µs        ? ?/sec    1.00    705.3±0.67µs        ? ?/sec
ops/array/jwst/remove                  1.00    207.8±0.42µs        ? ?/sec    1.00    207.1±0.23µs        ? ?/sec
ops/array/yrs/insert                   1.00     88.1±0.17µs        ? ?/sec    1.00     87.7±0.04µs        ? ?/sec
ops/array/yrs/insert range             1.02    112.4±0.15µs        ? ?/sec    1.00    110.5±0.16µs        ? ?/sec
ops/array/yrs/remove                   1.07     99.7±2.90µs        ? ?/sec    1.00     92.9±0.34µs        ? ?/sec
ops/text/jwst/insert                   1.00    245.5±0.35µs        ? ?/sec    1.01    247.1±1.41µs        ? ?/sec
ops/text/jwst/remove                   1.01      3.4±0.00µs        ? ?/sec    1.00      3.4±0.00µs        ? ?/sec
ops/text/yrs/insert                    1.00     42.0±0.29µs        ? ?/sec    1.00     42.1±0.04µs        ? ?/sec
ops/text/yrs/remove                    1.00      2.4±0.01µs        ? ?/sec    1.00      2.4±0.00µs        ? ?/sec
update/parse with jwst/basic.bin       1.00     51.6±0.58µs   105.8 MB/sec    1.01     52.0±0.43µs   105.1 MB/sec
update/parse with jwst/database.bin    1.00     56.3±0.03µs    58.8 MB/sec    1.02     57.3±0.06µs    57.8 MB/sec
update/parse with jwst/large.bin       1.00      3.5±0.00ms    64.9 MB/sec    1.02      3.6±0.00ms    63.3 MB/sec
update/parse with yrs/basic.bin        1.01     41.4±0.69µs   131.8 MB/sec    1.00     41.1±0.03µs   132.7 MB/sec
update/parse with yrs/database.bin     1.00     33.2±0.01µs    99.9 MB/sec    1.00     33.3±0.02µs    99.5 MB/sec
update/parse with yrs/large.bin        1.00      2.1±0.01ms   108.8 MB/sec    1.01      2.1±0.01ms   107.8 MB/sec

Windows

group                                  master                                 pr
-----                                  ------                                 --
codec/jwst decode var_int (32 bit)     1.00   430.3±31.25µs        ? ?/sec    1.02   440.8±17.29µs        ? ?/sec
codec/jwst decode var_int (64 bit)     1.00   411.9±17.14µs        ? ?/sec    1.09   449.0±22.45µs        ? ?/sec
codec/jwst decode var_uint (32 bit)    1.00   383.0±14.64µs        ? ?/sec    1.02   391.9±16.99µs        ? ?/sec
codec/jwst decode var_uint (64 bit)    1.00   392.0±13.82µs        ? ?/sec    1.02   400.6±21.41µs        ? ?/sec
codec/jwst encode var_int (32 bit)     1.00   504.9±26.99µs        ? ?/sec    1.08   543.2±37.91µs        ? ?/sec
codec/jwst encode var_int (64 bit)     1.00   489.9±26.20µs        ? ?/sec    1.10   539.4±32.94µs        ? ?/sec
codec/jwst encode var_uint (32 bit)    1.00   356.5±19.76µs        ? ?/sec    1.05   373.1±23.78µs        ? ?/sec
codec/jwst encode var_uint (64 bit)    1.00   365.9±22.54µs        ? ?/sec    1.02   373.8±17.08µs        ? ?/sec
codec/lib0 decode var_int (64 bit)     1.00   339.4±16.68µs        ? ?/sec    1.11   375.2±23.27µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)    1.00   291.5±13.35µs        ? ?/sec    1.09   317.9±15.77µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)    1.00   293.9±11.26µs        ? ?/sec    1.09   321.6±17.08µs        ? ?/sec
codec/lib0 encode var_int (64 bit)     1.01   536.6±92.35µs        ? ?/sec    1.00   529.8±23.26µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)    1.00   337.7±13.81µs        ? ?/sec    1.06   357.5±21.60µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)    1.00   329.8±12.93µs        ? ?/sec    1.20   395.5±25.64µs        ? ?/sec
ops/array/jwst/insert                  1.00   525.2±18.50µs        ? ?/sec    1.04   547.6±22.90µs        ? ?/sec
ops/array/jwst/insert range            1.00   877.0±32.15µs        ? ?/sec    1.03   902.0±37.38µs        ? ?/sec
ops/array/jwst/remove                  1.00    251.9±8.80µs        ? ?/sec    1.02   256.1±10.73µs        ? ?/sec
ops/array/yrs/insert                   1.00    135.1±3.81µs        ? ?/sec    1.03    138.5±6.79µs        ? ?/sec
ops/array/yrs/insert range             1.00   193.4±11.50µs        ? ?/sec    1.00    192.5±8.17µs        ? ?/sec
ops/array/yrs/remove                   1.00    201.6±7.27µs        ? ?/sec    1.03    207.6±7.23µs        ? ?/sec
ops/text/jwst/insert                   1.08   352.6±18.19µs        ? ?/sec    1.00   325.1±19.13µs        ? ?/sec
ops/text/jwst/remove                   1.04      4.8±0.24µs        ? ?/sec    1.00      4.6±0.30µs        ? ?/sec
ops/text/yrs/insert                    1.01     58.6±2.22µs        ? ?/sec    1.00     58.2±1.83µs        ? ?/sec
ops/text/yrs/remove                    1.02      4.9±0.30µs        ? ?/sec    1.00      4.8±0.20µs        ? ?/sec
update/parse with jwst/basic.bin       1.00    129.4±5.82µs    42.2 MB/sec    1.00    129.6±5.00µs    42.1 MB/sec
update/parse with jwst/database.bin    1.00    100.3±3.62µs    33.0 MB/sec    1.06    105.9±6.33µs    31.3 MB/sec
update/parse with jwst/large.bin       1.00      9.1±1.00ms    25.0 MB/sec    1.08      9.8±1.08ms    23.2 MB/sec
update/parse with yrs/basic.bin        1.00     84.6±2.87µs    64.6 MB/sec    1.04     88.3±4.01µs    61.8 MB/sec
update/parse with yrs/database.bin     1.00     66.6±2.00µs    49.8 MB/sec    1.05     70.1±3.29µs    47.2 MB/sec
update/parse with yrs/large.bin        1.00      5.8±0.64ms    39.7 MB/sec    1.04      6.0±0.72ms    38.3 MB/sec