fix some syntax deprecation warnings in perf
Merge pull request #8614 from JuliaLang/jcb/fixperfdep

fix some syntax deprecation warnings in perf folder