It might be running in a different powerplan when you unplug the laptop. All laptops start running in lowest/conservative clock settings when power is not plugged in.
Its normal. Just change the power plan and set everything to maximum performance either in the OS 'power options' or in the software provided by OEM(if any).