add example for compute_perf