Skip to content

Commit 9dff016

Browse files
benchmark reexecution
1 parent 921c967 commit 9dff016

File tree

5 files changed

+471
-2
lines changed

5 files changed

+471
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/apollo_gateway/src/rpc_state_reader.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ impl BlockifierStateReader for RpcStateReader {
168168
}
169169

170170
fn get_compiled_class_hash(&self, _class_hash: ClassHash) -> StateResult<CompiledClassHash> {
171-
todo!()
171+
// Return a dummy compiled class hash - this is only used for simulation
172+
// and the actual value doesn't affect execution when validation is skipped.
173+
Ok(CompiledClassHash(Felt::ONE))
172174
}
173175
}
174176

crates/blockifier_reexecution/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ thiserror.workspace = true
3333
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
3434

3535
[dev-dependencies]
36+
criterion = { workspace = true, features = ["html_reports"] }
3637
rstest.workspace = true
3738

39+
[[bench]]
40+
name = "simulate_transfer"
41+
harness = false
42+
3843
[lints]
3944
workspace = true

0 commit comments

Comments
 (0)