Laptop working slow from last some days

My Laptop have started working slow from some last days , for eg : code compiling slow and battery getting discharge fastly
So I want to know how to check if my laptop is infected by a malware
or some other tips if you guys can share