-
Notifications
You must be signed in to change notification settings - Fork 21.4k
testing: reporting non-standard benchmark results #16110
Copy link
Copy link
Closed
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
I would like to report the results of non-standard benchmark (non google/benchmark style) along side existing benchmarks, and do so following the proposed Go benchmark data format. For example, the pbench package reports percentiles in addition to the standard results.
I was unable to implement this benchmark without using reflection to access some unexported fields, and there was no mechanism for using the same
io.Writerfor the output. A preferable solution would be a new method onBthat, provided a name & benchmark-result argument, formats and writes the results in the standard format.Additionally, adding a
ReportAllocsfield toBenchmarkResultswould be useful for when a benchmark is run with-benchmembut a non-standard benchmark does not support malloc statistics.