Skip to content

Instantly share code, notes, and snippets.

@bprosnitz
Created March 15, 2016 17:36
Show Gist options
  • Save bprosnitz/f1b057b82ac0cc5448f3 to your computer and use it in GitHub Desktop.
Save bprosnitz/f1b057b82ac0cc5448f3 to your computer and use it in GitHub Desktop.
Set CPU clock speed to "performance" for benchmarks
#!/bin/bash
# sudo apt-get install cpufrequtils
sudo cpufreq-set -c 0 -g performance
sudo cpufreq-set -c 1 -g performance
sudo cpufreq-set -c 2 -g performance
sudo cpufreq-set -c 3 -g performance
sudo cpufreq-set -c 4 -g performance
sudo cpufreq-set -c 5 -g performance
sudo cpufreq-set -c 6 -g performance
sudo cpufreq-set -c 7 -g performance
sudo cpufreq-set -c 8 -g performance
sudo cpufreq-set -c 9 -g performance
sudo cpufreq-set -c 10 -g performance
sudo cpufreq-set -c 11 -g performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment