Files
revive/crates/yul/Cargo.toml
T
LJ 0742227c5a Implement Yul to LLVM IR compilation benchmarks (#407)
# Description

Closes [#404](https://github.com/paritytech/revive/issues/404)

Adds compilation time benchmarks for:

* Parsing of Yul source code -> AST Object
* Lowering of AST Object -> LLVM IR (unoptimized)

The benchmarks can be run from the root via:

```sh
# Run all benchmarks in the revive-yul crate (parsing + lowering)
make bench-yul
```

HTML reports will be generated under `target/criterion`, and a summary
of the results at
[crates/yul/BENCHMARKS_PARSE_M4PRO.md](https://github.com/paritytech/revive/blob/lj/compilation-benchmarks-yul/crates/yul/BENCHMARKS_PARSE_M4PRO.md)
and
[crates/yul/BENCHMARKS_LOWER_M4PRO.md](https://github.com/paritytech/revive/blob/lj/compilation-benchmarks-yul/crates/yul/BENCHMARKS_LOWER_M4PRO.md)
(currently from running on a Mac M4 Pro).

---------

Co-authored-by: xermicus <cyrill@parity.io>
2025-11-25 12:00:06 +01:00

34 lines
723 B
TOML

[package]
name = "revive-yul"
description = "The revive YUL parser library."
version = "0.4.0"
authors.workspace = true
license.workspace = true
edition.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
anyhow = { workspace = true }
inkwell = { workspace = true }
num = { workspace = true }
regex = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
revive-common = { workspace = true }
revive-llvm-context = { workspace = true }
[dev-dependencies]
alloy-primitives = { workspace = true }
criterion = { workspace = true }
revive-integration = { workspace = true }
[[bench]]
name = "parse"
harness = false
[[bench]]
name = "lower"
harness = false