Performance trace and improvement

Hi All experts,

I have a big project which’s build process is quite slow. local it would take 10 minutes, on jenkins server it would take near 1 hour due to upload is needed.

is there any best practice to meansure performace? and is there any common improvement point to improve for using gradle?