script to get the hardware performance