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

feat: benchmark blob validation #6355

Merged
merged 7 commits into from
Feb 2, 2024
Merged

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Feb 2, 2024

Adds a benchmark for blob tx validation, depending on the number of blobs.

@Rjected Rjected added A-tx-pool Related to the transaction mempool C-benchmark A change that impacts how or what we benchmark labels Feb 2, 2024
@Rjected Rjected requested a review from gakonst as a code owner February 2, 2024 16:53
Copy link
Collaborator

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

smol q otherwise lgtm

Comment on lines 83 to 85
if let Err(err) = tx.validate_blob(&blob_sidecar, &kzg_settings) {
println!("Validation failed: {:?}", err);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think the black_box hint is supposed to be around tx.validate_blob?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah after reading the docs of black_box that seems right, wrapped now

@Rjected Rjected added this pull request to the merge queue Feb 2, 2024
Merged via the queue into main with commit 98e5dfe Feb 2, 2024
28 checks passed
@Rjected Rjected deleted the dan/benchmark-blob-tx-validation branch February 2, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool C-benchmark A change that impacts how or what we benchmark
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants