Print stats about each query, flush page cache before each query if requested.