Files
revive/crates/resolc/BENCHMARKS_M4PRO.md
T
LJ ad61b6e3c9 Implement resolc end-to-end compilation benchmarks (#406)
# 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).
2025-11-19 12:16:07 +01:00

1.9 KiB

Benchmarks

Table of Contents

Benchmark Results

Empty

resolc solc
62.77 ms ( 1.00x) 9.63 ms (🚀 6.52x faster)

Dependency

resolc solc
142.28 ms ( 1.00x) 57.57 ms (🚀 2.47x faster)

LargeDivRem

resolc solc
110.80 ms ( 1.00x) 20.96 ms (🚀 5.29x faster)

Memset (--yul)

resolc solc
58.39 ms ( 1.00x) 8.84 ms (🚀 6.61x faster)

Return (--yul)

resolc solc
52.83 ms ( 1.00x) 8.04 ms (🚀 6.57x faster)

Multiple Contracts (--standard-json)

resolc solc
1.52 s ( 1.00x) 623.91 ms (🚀 2.44x faster)

Made with criterion-table