You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Run without Plan.Raw now aggregates incrementally: records are folded into histograms as they arrive instead of being kept, so memory no longer grows with the number of requests (5 million requests: about 1165 MB → 9 MB of collector heap in one measurement). As a result, P50–P99 in that report are approximations within 1% relative error; count, min, max and mean stay exact. With Plan.Raw set, every record is kept and the percentiles are exact as before. BuildReport and FromRaw are unchanged.
Added
report.Aggregator, an incremental alternative to BuildReport; record.Observer and record.NewStreamingCollector, a Collector that hands records to an observer instead of keeping them.