Code beautify and calculate min/avg/max processing time