added test to measure performance