fix some syntax deprecation warnings in perf folder