This is a branch prediction simulator for various different branch prediction strategies and calculates their prediction rates. The results are then presented and briefly analysed on different benchmarks to understand the effect of branch prediction on particular programs.
To run the notebook, type ipython3 notebook
in the directory and open the notebook file. Then choose Cell > Run All in the notebook to run all the code. Experiments may take a while to run.
Included is the notebook in python notebook and html formats. The traces of the benchmarks along with the source code for the benchmarks themselves are also included. To build the benchmark programs, run make
in the benchmarks directory.