Added periodic_perf hooks to cpu benchmark