Skip to content

berkeley-cs164-2025/hw8-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmarks for Homework 8

Check out the Homework 8 assignment for details on how to submit benchmarks to this repository!

How to run the benchmarks

Here's how to get started running benchmarks for Homework 8:

  1. Clone this respository into your Homework 8 repository:
git clone git@github.com:berkeley-cs164-2025/hw8-benchmarks.git
  1. In the new hw8-benchmarks directory (not the benchmarks subdirectory), edit the config.json file. 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!)

  1. Run the benchmark script. It will run each benchmark 10 times using each specified configuration and write the results to results.csv.
python3 bench.py

Most importantly, have fun!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published