Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Go example for benchmarking with go test -bench

This directory shows how to use github-action-benchmark with go test -bench command.

Run benchmarks

Official documentation for usage of go test -bench:


- name: Run benchmark
  run: go test -bench 'Benchmark' | tee output.txt

Process benchmark results

Store the benchmark results with step using the action. Please set go to tool input.

- name: Store benchmark result
  uses: rhysd/github-action-benchmark@v1
    tool: 'go'
    output-file-path: output.txt

Please read 'How to use' section for common usage.

You can’t perform that action at this time.