Add query benchmarking.