The separation did not work before, somehow. The new approach of redefining the function names, while hacky, definitely works though.
19 lines
453 B
Bash
Executable File
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!"
|