13 lines
383 B
Bash
13 lines
383 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
shopt -s nullglob
|
||
|
|
||
|
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
|
||
|
echo performance | sudo tee /sys/devices/system/cpu/cpu"$i"/cpufreq/scaling_governor
|
||
|
done
|
||
|
|
||
|
rm -f perf.data
|
||
|
sudo perf record -g nice -n -20 taskset -c 1 hyperbuild-bench/target/release/hyperbuild-bench --tests tests --iterations 512
|
||
|
sudo chown "$USER:$USER" perf.data
|