Skip to content

Commit 1bb38bd

Browse files
committed
update bench
1 parent 1c82d86 commit 1bb38bd

File tree

4 files changed

+241
-13
lines changed

4 files changed

+241
-13
lines changed

Cargo.lock

+221-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benches/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
## Benchmark Results
1414

15-
| Benchmark | Time (ms) | Iterations | Notes |
16-
| ------------------------------------ | --------------- | ---------- | -------------- |
17-
| get_10_header_proofs | 1667.7 - 1720.4 | 10 | Block Range 10 |
18-
| get_10_account_proofs | 343.19 - 403.63 | 10 | Block Range 10 |
19-
| get_10_storage_proofs | 331.28 - 385.67 | 10 | Block Range 10 |
20-
| get_tx_with_proof_from_block | 458.63 - 552.80 | 10 | -- |
21-
| get_tx_receipt_with_proof_from_block | 2090.4 - 2692.8 | 10 | -- |
15+
| Benchmark | Time (ms) | Iterations | Notes |
16+
| ------------------------------------ | --------- | ---------- | -------------- |
17+
| get_10_header_proofs | 200.52 ms | 10 | Block Range 10 |
18+
| get_10_account_proofs | 243.05 ms | 10 | Block Range 10 |
19+
| get_10_storage_proofs | 245.14 ms | 10 | Block Range 10 |
20+
| get_tx_with_proof_from_block | 231.62 ms | 10 | -- |
21+
| get_tx_receipt_with_proof_from_block | 1590.2 ms | 10 | -- |

benches/provider_benchmark.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use alloy::primitives::{address, B256};
22
use criterion::{criterion_group, criterion_main, Bencher, Criterion};
3-
use hdp_provider::evm::provider::EvmProvider; // Adjust this import path according to your project structure
4-
3+
use hdp::provider::evm::provider::EvmProvider;
54
use tokio::runtime::Runtime;
65

76
fn benchmark_header(b: &mut Bencher) {

0 commit comments

Comments
 (0)