when i type it - it work well. after reboot it become not working, it also does not saves in config archive.
not working i mean - it become basic clock.
@mike nailed the location, but another tip is to make it easier on yourself (and for a cleaner rc.local file) just set performance for all cores with a one-liner like this:
# Set the CPU governor
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
(Adjust the actual pathing as needed for your specific CPU)