core functionality for performance test