measuring in batches to avoid outliers