Skip to content

bench: merkle stage#1324

Closed
MegaRedHand wants to merge 17 commits intoparadigmxyz:mainfrom
lambdaclass:bench-merkle
Closed

bench: merkle stage#1324
MegaRedHand wants to merge 17 commits intoparadigmxyz:mainfrom
lambdaclass:bench-merkle

Conversation

@MegaRedHand
Copy link
Contributor

Closes: #1234

This PR adds benchmarks for the merkle stage, both for incremental and clean trie building. Along with this, it moves some functionality from the MerkleStage tests for generating and inserting account and storage changes to generators.rs and TestTransaction, respectively.

MegaRedHand and others added 13 commits February 10, 2023 17:12
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2023

Codecov Report

Merging #1324 (6460cc4) into main (ae2441a) will increase coverage by 0.05%.
The diff coverage is 96.70%.

📣 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    #1324      +/-   ##
==========================================
+ Coverage   76.59%   76.65%   +0.05%     
==========================================
  Files         355      355              
  Lines       40542    40603      +61     
==========================================
+ Hits        31052    31123      +71     
+ Misses       9490     9480      -10     
Flag Coverage Δ
integration-tests 22.49% <0.00%> (-0.02%) ⬇️
unit-tests 70.88% <96.70%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
crates/stages/src/lib.rs 100.00% <ø> (ø)
crates/interfaces/src/test_utils/generators.rs 98.31% <94.56%> (-1.69%) ⬇️
crates/stages/src/stages/merkle.rs 80.98% <94.73%> (-4.14%) ⬇️
crates/primitives/src/storage.rs 100.00% <100.00%> (ø)
crates/stages/src/test_utils/test_db.rs 80.19% <100.00%> (+5.67%) ⬆️
crates/stages/src/trie/mod.rs 92.66% <100.00%> (ø)
crates/net/discv4/src/proto.rs 89.66% <0.00%> (-3.13%) ⬇️
crates/net/eth-wire/src/capability.rs 59.43% <0.00%> (-0.95%) ⬇️
crates/storage/provider/src/test_utils/mock.rs 50.78% <0.00%> (-0.79%) ⬇️
crates/stages/src/stages/sender_recovery.rs 91.00% <0.00%> (-0.53%) ⬇️
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@onbjerg onbjerg added the C-benchmark A change that impacts how or what we benchmark label Feb 14, 2023
MegaRedHand and others added 2 commits February 14, 2023 12:19
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
@gakonst
Copy link
Member

gakonst commented Feb 14, 2023

@joshieDo PTAL - I think we'll want to look at all these benches and start unifying the test vector generation code, possibly moving everything over to your "generate snapshot from real data" table

@gakonst
Copy link
Member

gakonst commented Feb 17, 2023

@MegaRedHand I just synced with @joshieDo - this is a good start, he'll take over as he's been revamping all our benches. thank you!

@joshieDo
Copy link
Collaborator

closing for #1497

@joshieDo joshieDo closed this Feb 22, 2023
@MegaRedHand MegaRedHand deleted the bench-merkle branch February 22, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-benchmark A change that impacts how or what we benchmark

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add benchmarks for MerkleStage

5 participants