Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fahimahmedx
Copy link
Contributor

This code closely follows the current implementation of the any_init benchmark, which was originally raised in #1121, but is modified to be for adb::current. Addresses one component of issue #1309.

This benchmarks the setup for current adb in both singlethreaded and multithreaded scenarios, and currently does so with a bitmap chunk size of 32 bytes (a 1x multiple of the SHA256 digest size).

It also fixes a missing functionality of deleting the persistent bitmap partition when closing a adb::current database, by adding a destroy() function to bitmap.rs and calling it in adb::current::destroy()

The full thread for this PR can be found here: #1346

patrick-ogrady
patrick-ogrady previously approved these changes Aug 12, 2025
CARGO_TERM_COLOR: always
UDEPS_VERSION: 0.1.50
UDEPS_VERSION: 0.1.57
NIGHTLY_VERSION: nightly-2025-08-10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinned nightly to fix the udeps issue

@patrick-ogrady patrick-ogrady merged commit bd2b851 into commonwarexyz:main Aug 12, 2025
33 checks passed
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.52%. Comparing base (3ac52aa) to head (bdafff0).
⚠️ Report is 5 commits behind head on main.

@@            Coverage Diff             @@
##             main    #1390      +/-   ##
==========================================
+ Coverage   91.34%   91.52%   +0.18%     
==========================================
  Files         265      265              
  Lines       66726    67194     +468     
==========================================
+ Hits        60950    61502     +552     
+ Misses       5776     5692      -84     
Files with missing lines Coverage Δ
storage/src/adb/current.rs 96.84% <100.00%> (+<0.01%) ⬆️
storage/src/mmr/bitmap.rs 96.49% <100.00%> (+0.06%) ⬆️

... and 34 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ac52aa...bdafff0. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants