code to test retrieval times for large datasets