Actually this happens due to auto-cpufreq
When on battery it sets powersave governor to increase battery life.
To disable this feature
You can disable the service
systemctl disable auto-cpufreq
Doing this and rebooting will set your governor to performance.
But it will reduce battery life.