finished memory testing, added code for performance tests