Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the benchmark tests #11

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Fix the benchmark tests #11

merged 1 commit into from
Mar 23, 2020

Conversation

gballet
Copy link

@gballet gballet commented Mar 21, 2020

The 4K benchmarks were hardcoding the root hash value and it was the wrong value.
The 10K benchmarks weren't testing the value.

This PR runs StdGenerate once to get the proper value. The issue with this approach is that it warms the cache and make it look a tiny bit (100μs on average) faster than it is without the cache.
It also checks the output of 10K.
Finally, it replaces StackGenerate with ReStackGenerate.

@gballet gballet requested a review from holiman as a code owner March 21, 2020 08:20
@holiman holiman merged this pull request into holiman:trie_gen Mar 23, 2020
holiman pushed a commit that referenced this pull request Mar 23, 2020
* Base algorithm

* Pass the initial tests

* Works with all available tests

* Fix missing headers

* Various fixes after rebase

* Fix issue coming out of goerli sync

* Code cleanup and documentation

* More comments

* Remove outdated tests

* Compare StdGenerate with ReStackTrie

* Fix the benchmark tests (#11)
holiman pushed a commit that referenced this pull request Nov 14, 2022
core: set withdrawals hash in genesis, fix tests, add withdrawalRoot
holiman pushed a commit that referenced this pull request Nov 26, 2022
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.

2 participants