2020-01-26 03:23:23 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
shopt -s nullglob
|
|
|
|
|
|
|
|
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
|
2020-01-31 07:15:35 -05:00
|
|
|
echo performance | sudo dd status=none of="$i"
|
2020-01-26 03:23:23 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
rm -f perf.data
|
2020-07-11 11:29:34 -04:00
|
|
|
sudo perf record -g nice -n -20 taskset -c 1 minify-html-bench/target/release/minify-html-bench --tests tests --iterations 512
|
2020-01-26 03:23:23 -05:00
|
|
|
sudo chown "$USER:$USER" perf.data
|