added perf.py and check.py