all: replace io/ioutil with io and os package

For #45557

Change-Id: I12784eeadcbb467819307a6ec8008f940f215065
GitHub-Last-Rev: 4cc337ea4a4a7c59d5d9226911ecf0d4a71aa44c
GitHub-Pull-Request: golang/perf#5
Run-TryBot: Jenny Rakoczy <>
TryBot-Result: Gopher Robot <>
Auto-Submit: Jenny Rakoczy <>
Reviewed-by: Jenny Rakoczy <>
Run-TryBot: Meng Zhuo <>
Reviewed-by: Ian Lance Taylor <>
Reviewed-by: Meng Zhuo <>
Run-TryBot: Ian Lance Taylor <>
Run-TryBot: Ian Lance Taylor <>
14 files changed
tree: f7e398fc1f1cf445eb4ce881e85fa2c8de38d2dd
  1. analysis/
  2. benchfmt/
  3. benchmath/
  4. benchproc/
  5. benchseries/
  6. benchstat/
  7. benchunit/
  8. cmd/
  9. internal/
  10. storage/
  12. go.mod
  13. go.sum

Go benchmark analysis tools

Go Reference

This subrepository holds tools and packages for analyzing Go benchmark results, such as the output of testing package benchmarks.


This subrepository contains command-line tools for analyzing benchmark result data.

cmd/benchstat computes statistical summaries and A/B comparisons of Go benchmarks.

cmd/benchsave publishes benchmark results to

To install all of these commands, run go install You can also git clone and run go install ./cmd/... in the checkout.


Underlying the above tools are several packages for working with benchmark data. These are designed to work together, but can also be used independently.

benchfmt reads and writes the Go benchmark format.

benchunit manipulates benchmark units and formats numbers in those units.

benchproc provides tools for filtering, grouping, and sorting benchmark results.

benchmath provides tools for computing statistics over distributions of benchmark measurements.

Deprecated packages

The following packages are deprecated and no longer supported:

storage contains a deprecated version of the benchmark result storage system. These packages have moved to

analysis contains a deprecated version of the benchmark result analysis system. These packages have moved to

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the perf repository is located at Prefix your issue with “x/perf:” in the subject line, so it is easy to find.