Update perf.cpp