cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.45.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/benchmark.yml

31lines · modecode

1name: Benchmark Go code
2
3on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11jobs:
12 test-go:
13 runs-on: ubuntu-latest
14 steps:
15 - name: Check out code
16 uses: actions/checkout@v3
17
18 - name: Set up Go
19 uses: actions/setup-go@v4
20 with:
21 go-version: 1.20.5
22 cache: true
23
24 - name: Test
25 run: make benchmark
26
27 - name: CPU
28 run: go tool pprof -top cpu.prof
29
30 - name: Memory
31 run: go tool pprof -top mem.prof
32