able to use parameter to choose operations
added perftest.py