Fix C perf code
Merge pull request #6418 from cbecker/master

Fix C perf code