fixed compile error regarding test/perf.cc