edit performance.py pattern