Skip to content

Commit

Permalink
refactor: rewrite revm-test as a criterion bench (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Aug 6, 2023
1 parent e21bebf commit bd84a07
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 189 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@

[workspace]
resolver = "2"
members = [
"bins/*",
"crates/*",
]
members = ["bins/*", "crates/*"]
default-members = ["crates/revm"]

[profile.release]
Expand Down
20 changes: 0 additions & 20 deletions bins/revm-test/Cargo.toml

This file was deleted.

61 changes: 0 additions & 61 deletions bins/revm-test/src/bin/analysis.rs

This file was deleted.

61 changes: 0 additions & 61 deletions bins/revm-test/src/bin/snailtracer.rs

This file was deleted.

39 changes: 0 additions & 39 deletions bins/revm-test/src/bin/transfer.rs

This file was deleted.

11 changes: 7 additions & 4 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ serde = { version = "1.0", features = ["derive", "rc"], optional = true }
serde_json = { version = "1.0", features = ["preserve_order"], optional = true }

# ethersdb
tokio = { version = "1.28", features = [
"rt-multi-thread",
"macros",
], optional = true }
tokio = { version = "1.28", features = ["rt-multi-thread", "macros"], optional = true }
ethers-providers = { version = "2.0", optional = true }
ethers-core = { version = "2.0", optional = true }
futures = { version = "0.3.27", optional = true }
Expand All @@ -34,6 +31,7 @@ ethers-contract = { version = "2.0.3", default-features = false }
hex = "0.4.3"
bytes = "1.4.0"
anyhow = "1.0.71"
criterion = "0.5"

[features]
default = ["std", "secp256k1"]
Expand Down Expand Up @@ -64,3 +62,8 @@ with-serde = []
[[example]]
name = "fork_ref_transact"
path = "../../examples/fork_ref_transact.rs"

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
Loading

0 comments on commit bd84a07

Please sign in to comment.