Add benchmarking script.
This commit is contained in:
parent
2724873f2f
commit
9ab3861d47
15
benchmark.sh
Executable file
15
benchmark.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
"on" )
|
||||||
|
for i in /sys/devices/system/cpu/cpu[0-7] ; do
|
||||||
|
echo performance > $i/cpufreq/scaling_governor
|
||||||
|
done;;
|
||||||
|
"off" )
|
||||||
|
for i in /sys/devices/system/cpu/cpu[0-7] ; do
|
||||||
|
echo powersave > $i/cpufreq/scaling_governor
|
||||||
|
done;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 on|off";;
|
||||||
|
esac
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user