qemu-nyx-runner/benchmark_all.sh
David Venhoff 9ba2bbe8cd Fix compilation of embench
The separation did not work before, somehow.
The new approach of redefining the function names, while hacky, definitely works though.
2025-09-12 10:54:24 +02:00

19 lines
453 B
Bash
Executable File

set -e
cargo build --workspace --release
echo "Disabling turbo..."
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
for file in client/src/bin/*.rs; do
bin_name=$(basename "$file" .rs)
bin_path=./target/release/${bin_name}
echo "Benchmarking $bin_name..."
sudo -E nice -n -20 taskset -c 0 ./target/release/qemu-nyx-runner "$bin_path"
done
echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
echo "Done!"