Move calc_perf to processing module