mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-14 21:31:05 +00:00
ad61b6e3c9
# Description Closes [#403](https://github.com/paritytech/revive/issues/403) Adds compilation time benchmarks for resolc end-to-end. The benchmarks can be run from the root via: ```sh make bench-resolc ``` HTML reports will be generated under `target/criterion`, and a summary of the results at [crates/resolc/BENCHMARKS_M4PRO.md](https://github.com/paritytech/revive/blob/lj/compilation-benchmarks/crates/resolc/BENCHMARKS_M4PRO.md) (currently from running on a Mac M4 Pro).
16 lines
452 B
Rust
16 lines
452 B
Rust
use crate::cli_utils::{
|
|
assert_command_success, execute_resolc, RESOLC_YUL_FLAG, YUL_CONTRACT_PATH,
|
|
};
|
|
|
|
#[test]
|
|
fn llvm_arguments_work_with_yul_input() {
|
|
let output_with_argument = execute_resolc(&[
|
|
RESOLC_YUL_FLAG,
|
|
YUL_CONTRACT_PATH,
|
|
"--llvm-arg=-riscv-soften-spills'",
|
|
"--bin",
|
|
]);
|
|
assert_command_success(&output_with_argument, "Providing LLVM arguments");
|
|
assert!(output_with_argument.success);
|
|
}
|