mirage / irmin

Irmin is a distributed database that follows the same design principles as Git
https://irmin.org
ISC License
1.84k stars 153 forks source link

bench: update tree replay to support lower layer #2233

Closed metanivek closed 1 year ago

metanivek commented 1 year ago

This PR updates the bench/irmin-pack/tree.ml and related files to support a lower layer and adding volumes during replay.

One flag is added to the tree exec, add-volume-every. It defaults to 0. Setting it to a number greater than 0 will create a lower layer and add a new volume every N GCs.

codecov-commenter commented 1 year ago

Codecov Report

Merging #2233 (21c5b03) into main (eb98725) will increase coverage by 0.01%. The diff coverage is 0.00%.

:exclamation: Current head 21c5b03 differs from pull request most recent head 18d33e9. Consider uploading reports for the commit 18d33e9 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #2233      +/-   ##
==========================================
+ Coverage   67.98%   68.00%   +0.01%     
==========================================
  Files         136      136              
  Lines       16560    16564       +4     
==========================================
+ Hits        11259    11265       +6     
+ Misses       5301     5299       -2     
Impacted Files Coverage Δ
bench/irmin-pack/trace_replay.ml 41.43% <0.00%> (-0.68%) :arrow_down:

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

metanivek commented 1 year ago

@adatario yeah, you're right. I added an issue in that repo in case we want to add support.