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: renew value in map #521

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 24, 2023 10:46am
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% :tada:

Comparison is base (857a047) 64.67% compared to head (f5ff243) 64.69%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #521 +/- ## ========================================== + Coverage 64.67% 64.69% +0.01% ========================================== Files 184 184 Lines 21004 21035 +31 ========================================== + Hits 13585 13608 +23 - Misses 7419 7427 +8 ``` | [Files Changed](https://app.codecov.io/gh/toeverything/OctoBase/pull/521?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [libs/jwst-codec/src/doc/store.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/521?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2Mvc3RvcmUucnM=) | `87.65% <100.00%> (-0.60%)` | :arrow_down: | | [libs/jwst-codec/src/doc/types/map.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/521?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvZGVjL3NyYy9kb2MvdHlwZXMvbWFwLnJz) | `89.20% <100.00%> (+0.81%)` | :arrow_up: | | [libs/jwst-core/src/block/mod.rs](https://app.codecov.io/gh/toeverything/OctoBase/pull/521?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#diff-bGlicy9qd3N0LWNvcmUvc3JjL2Jsb2NrL21vZC5ycw==) | `79.50% <100.00%> (+0.65%)` | :arrow_up: | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/toeverything/OctoBase/pull/521/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.00    361.4±5.33µs        ? ?/sec    1.00    360.6±4.46µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.00    273.1±1.48µs        ? ?/sec    1.00    272.0±0.57µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.00    278.5±1.36µs        ? ?/sec    1.00    279.5±1.88µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.00    500.3±6.72µs        ? ?/sec    1.00    500.9±6.66µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00    377.3±0.57µs        ? ?/sec    1.00    377.4±0.64µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.00    377.5±0.65µs        ? ?/sec    1.00    377.6±0.69µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.00    268.9±2.05µs        ? ?/sec    1.00    269.1±0.85µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.00    252.7±3.83µs        ? ?/sec    1.01    254.0±3.07µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.07    265.2±2.58µs        ? ?/sec    1.00    246.9±3.50µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.00    413.3±4.55µs        ? ?/sec    1.02    423.0±4.08µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.00    376.6±0.79µs        ? ?/sec    1.00    376.6±0.66µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00    342.0±0.79µs        ? ?/sec    1.00    342.2±0.70µs        ? ?/sec
ops/array/jwst/insert                     1.00    397.9±1.34µs        ? ?/sec    1.00    396.7±1.56µs        ? ?/sec
ops/array/jwst/insert range               1.01    540.5±0.22µs        ? ?/sec    1.00    536.6±5.07µs        ? ?/sec
ops/array/jwst/remove                     1.00    278.4±0.66µs        ? ?/sec    1.00    279.5±0.09µs        ? ?/sec
ops/array/yrs/insert                      1.00     89.2±2.43µs        ? ?/sec    1.01     90.1±1.11µs        ? ?/sec
ops/array/yrs/insert range                1.00    111.4±0.31µs        ? ?/sec    1.01    112.9±0.66µs        ? ?/sec
ops/array/yrs/remove                      1.00    100.7±1.10µs        ? ?/sec    1.02    102.6±1.88µs        ? ?/sec
ops/text/jwst/insert                      1.00    153.5±0.16µs        ? ?/sec    1.01    154.7±1.88µs        ? ?/sec
ops/text/jwst/remove                      1.01      3.4±0.08µs        ? ?/sec    1.00      3.4±0.01µs        ? ?/sec
ops/text/yrs/insert                       1.01     42.4±0.02µs        ? ?/sec    1.00     42.2±0.02µs        ? ?/sec
ops/text/yrs/remove                       1.00      2.4±0.00µs        ? ?/sec    1.01      2.4±0.02µs        ? ?/sec
update/parse with jwst/basic.bin          1.00     65.5±0.03µs    83.3 MB/sec    1.02     66.6±0.48µs    82.0 MB/sec
update/parse with jwst/database.bin       1.00     53.8±2.03µs    61.6 MB/sec    1.01     54.1±1.13µs    61.2 MB/sec
update/parse with jwst/large.bin          1.00      3.4±0.01ms    66.9 MB/sec    1.01      3.5±0.01ms    66.2 MB/sec
update/parse with jwst/with-subdoc.bin    1.00      6.2±0.01µs   112.6 MB/sec    1.01      6.3±0.04µs   111.5 MB/sec
update/parse with yrs/basic.bin           1.04     42.8±0.78µs   127.7 MB/sec    1.00     41.2±0.19µs   132.6 MB/sec
update/parse with yrs/database.bin        1.03     34.2±0.22µs    96.8 MB/sec    1.00     33.1±0.12µs   100.1 MB/sec
update/parse with yrs/large.bin           1.04      2.2±0.01ms   106.1 MB/sec    1.00      2.1±0.00ms   109.9 MB/sec
update/parse with yrs/with-subdoc.bin     1.00      5.5±0.00µs   126.6 MB/sec    1.13      6.2±0.03µs   112.2 MB/sec

Windows

group                                     master                                 pr
-----                                     ------                                 --
codec/jwst decode var_int (32 bit)        1.00    366.8±5.21µs        ? ?/sec    1.00    365.1±5.26µs        ? ?/sec
codec/jwst decode var_uint (32 bit)       1.00    431.6±5.92µs        ? ?/sec    1.00    431.7±5.99µs        ? ?/sec
codec/jwst decode var_uint (64 bit)       1.01    325.7±6.99µs        ? ?/sec    1.00    323.5±5.65µs        ? ?/sec
codec/jwst encode var_int (32 bit)        1.01    499.6±8.24µs        ? ?/sec    1.00    496.3±6.73µs        ? ?/sec
codec/jwst encode var_uint (32 bit)       1.00    304.9±4.60µs        ? ?/sec    1.00    303.8±4.46µs        ? ?/sec
codec/jwst encode var_uint (64 bit)       1.01    304.6±4.56µs        ? ?/sec    1.00    300.6±4.28µs        ? ?/sec
codec/lib0 decode var_int (64 bit)        1.01    435.9±7.64µs        ? ?/sec    1.00    430.9±5.62µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)       1.00    243.7±3.44µs        ? ?/sec    1.00    242.9±3.25µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)       1.00    244.1±3.58µs        ? ?/sec    1.00    243.3±3.35µs        ? ?/sec
codec/lib0 encode var_int (64 bit)        1.01   607.8±11.96µs        ? ?/sec    1.00    602.8±8.34µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)       1.05    403.3±5.95µs        ? ?/sec    1.00    384.6±4.72µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)       1.00    414.3±6.54µs        ? ?/sec    1.01    420.1±6.98µs        ? ?/sec
ops/array/jwst/insert                     1.00    424.7±4.94µs        ? ?/sec    1.00    423.4±5.70µs        ? ?/sec
ops/array/jwst/insert range               1.00    558.0±5.83µs        ? ?/sec    1.00    559.9±5.62µs        ? ?/sec
ops/array/jwst/remove                     1.00    271.1±3.04µs        ? ?/sec    1.01    273.0±4.22µs        ? ?/sec
ops/array/yrs/insert                      1.01    107.6±0.92µs        ? ?/sec    1.00    106.0±1.59µs        ? ?/sec
ops/array/yrs/insert range                1.01    150.3±1.77µs        ? ?/sec    1.00    149.4±2.68µs        ? ?/sec
ops/array/yrs/remove                      1.00    158.1±1.50µs        ? ?/sec    1.01    159.8±2.08µs        ? ?/sec
ops/text/jwst/insert                      1.00    188.0±3.19µs        ? ?/sec    1.00    188.8±2.83µs        ? ?/sec
ops/text/jwst/remove                      1.00      4.8±0.05µs        ? ?/sec    1.02      4.9±0.08µs        ? ?/sec
ops/text/yrs/insert                       1.00     46.5±0.51µs        ? ?/sec    1.00     46.4±0.70µs        ? ?/sec
ops/text/yrs/remove                       1.24      4.7±0.09µs        ? ?/sec    1.00      3.8±0.04µs        ? ?/sec
update/parse with jwst/basic.bin          1.02     98.0±0.95µs    55.7 MB/sec    1.00     95.9±1.76µs    56.9 MB/sec
update/parse with jwst/database.bin       1.00     75.9±0.85µs    43.7 MB/sec    1.00     76.0±0.82µs    43.6 MB/sec
update/parse with jwst/large.bin          1.01      4.7±0.13ms    48.5 MB/sec    1.00      4.7±0.13ms    48.8 MB/sec
update/parse with jwst/with-subdoc.bin    1.05     14.9±0.15µs    47.0 MB/sec    1.00     14.2±0.14µs    49.3 MB/sec
update/parse with yrs/basic.bin           1.00     66.4±1.09µs    82.3 MB/sec    1.02     67.8±0.55µs    80.6 MB/sec
update/parse with yrs/database.bin        1.00     50.4±0.43µs    65.7 MB/sec    1.04     52.2±1.03µs    63.4 MB/sec
update/parse with yrs/large.bin           1.03      3.2±0.13ms    70.6 MB/sec    1.00      3.1±0.10ms    72.6 MB/sec
update/parse with yrs/with-subdoc.bin     1.07     12.4±0.16µs    56.6 MB/sec    1.00     11.5±0.13µs    60.7 MB/sec