Skip to content

Commit

Permalink
Create benchmark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Dec 31, 2023
1 parent 439f4d4 commit 9de6d01
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: benchmark

on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21'
check-latest: true
- name: Benchmark
run: |
cd bench
go test -v -cpu=8 -run=none -bench=. -benchtime=5s -benchmem bench_test.go

0 comments on commit 9de6d01

Please sign in to comment.