2023W-EFFPROG

Magic Hexagon.
Log | Files | Refs | README

commit 0699e7b245fa33c24f452e13bc1b9eb78e1fae03
parent fb4604a60fc8d53fe6ed0378468032a99779c87b
Author: Markus Hunner <26381538+markhun@users.noreply.github.com>
Date:   Wed, 20 Dec 2023 10:25:10 +0100

Makefile: Add benchmark target

`make benchmark` will run the magichex programm 5 times and output
the average runtime with its deviations in seconds.

Diffstat:
MMakefile | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -76,6 +76,9 @@ profile-with-test: magichex && echo "-------- TEST SUCCESSFUL! --------" \ || echo "-------- TEST FAILED! --------" +benchmark: magichex + perf stat -r 5 -d $(BIN_DIR)/magichex 4 3 14 33 30 34 39 6 24 20 + profile: magichex perf stat -e cycles:u -e instructions:u -e branches:u -e branch-misses:u -e L1-dcache-load-misses:u $(BIN_DIR)/magichex 4 3 14 33 30 34 39 6 24 20