master.py: perf_single() small refactoring