updated to add timings to first code example