Check out the Homework 8 assignment for details on how to submit benchmarks to this repository!
Here's how to get started running benchmarks for Homework 8:
- Clone this respository into your Homework 8 repository:
git clone git@github.com:berkeley-cs164-2025/hw8-benchmarks.git- In the new
hw8-benchmarksdirectory (not thebenchmarkssubdirectory), edit theconfig.jsonfile. This file should be a JSON-formatted dictionary where the keys are configurations and the values are lists of pass names. For example, we have the following example configuration set up by default:
{
"No optimizations": [],
"Inlining": ["uniquify-variables", "inline"],
"Constant propagation and inlining": ["uniquify-variables", "inline", "propagate-constants"]
}(The configuration names are just to help you distinguish what is actually being run, so they can be anything you'd like!)
- Run the benchmark script. It will run each benchmark 10 times using each specified configuration and write the results to
results.csv.
python3 bench.pyMost importantly, have fun!