Skip to content

Commit

Permalink
Cache golang modules
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed May 20, 2022
1 parent 7e060ad commit 4ed23bd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -12,6 +12,22 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Setup Golang caches
uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Fetch Repository
uses: actions/checkout@v3
- name: Run Test
Expand Down

2 comments on commit 4ed23bd

@ReneWerner87
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 4ed23bd Previous: b31c175 Ratio
Benchmark_App_ETag 6096 ns/op 1044 B/op 3 allocs/op 2645 ns/op 1044 B/op 3 allocs/op 2.30
Benchmark_App_ETag_Weak 6219 ns/op 1068 B/op 4 allocs/op 2725 ns/op 1068 B/op 4 allocs/op 2.28
Benchmark_Utils_ETag 6372 ns/op 1044 B/op 3 allocs/op 2704 ns/op 1044 B/op 3 allocs/op 2.36
Benchmark_Utils_ETag_Weak 6314 ns/op 1068 B/op 4 allocs/op 2726 ns/op 1068 B/op 4 allocs/op 2.32
Benchmark_ToUpperBytes/fiber 61.29 ns/op 0 B/op 0 allocs/op 29.61 ns/op 0 B/op 0 allocs/op 2.07

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

@ReneWerner87
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 4ed23bd Previous: b31c175 Ratio
Benchmark_ToUpperBytes/fiber 65.89 ns/op 0 B/op 0 allocs/op 29.61 ns/op 0 B/op 0 allocs/op 2.23
Benchmark_TrimRight/fiber 5.003 ns/op 0 B/op 0 allocs/op 2.288 ns/op 0 B/op 0 allocs/op 2.19

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

Please sign in to comment.