fix of perf.py
Merge pull request #665 from ifilippov/master

fix of perf.py