Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Oct 19, 2023
1 parent 9c73c8d commit 98f0b81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,8 @@ jobs:
set -o pipefail
make bench | tee bench_output.txt
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
- name: Save benchmark data
uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ./cache
key: ${{ runner.os }}-go-benchmark

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@70405016b032d44f409e4b1b451c40215cbe2393 # v1.18.0
with:
# What benchmark tool the output.txt came from
tool: 'go'
# Where the output from the benchmark tool is stored
output-file-path: bench_output.txt
# Where the previous data file is stored
external-data-json-path: ./cache/benchmark-data.json
# Workflow will fail when an alert happens
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
key: ${{ runner.os }}-go-benchmark
5 changes: 3 additions & 2 deletions .github/workflows/prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
set -o pipefail
make bench | tee ${{ github.sha }}_bench_output.txt
# Download previous benchmark result from cache (if exists)
# Download previous benchmark result from cache
- name: Download previous benchmark data
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
id: cache-restore
uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ./cache
key: ${{ runner.os }}-go-benchmark
Expand Down

1 comment on commit 98f0b81

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 98f0b81 Previous: 5725c59 Ratio
BenchmarkFib10 - ns/op 1065322 ns/op 1117284 ns/op 0.95
BenchmarkFib10 - B/op 0 B/op 0 B/op NaN
BenchmarkFib10 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib20 - ns/op 1065345 ns/op 1118837 ns/op 0.95
BenchmarkFib20 - B/op 0 B/op 0 B/op NaN
BenchmarkFib20 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib25 - ns/op 1064713 ns/op 1116708 ns/op 0.95
BenchmarkFib25 - B/op 0 B/op 0 B/op NaN
BenchmarkFib25 - allocs/op 0 allocs/op 0 allocs/op NaN

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.