A script to check the query execution time as well as the time to retrieve all records via a FOR cur IN construct: