revise performance.py