Setting performance for your pi

For those who wonder how to change the cpu settings of the raspberry so it always runs full speed:

edit /etc/rc.local and Add this line:

sudo echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

below the already existing lines:
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

but before:
exit 0

So it starts to look like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

sudo echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

exit 0

And reboot your pi.