-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.21 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Benchmark Golang Libraries
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
Benchmark-Expression-Evaluation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Dependencies
run: |
echo "Download Dependencies"
go mod tidy
go mod vendor
- name: Benchmark
run: |
echo "Benchmark Expression Evaluation libraries"
cd /home/runner/work/benchmark/benchmark/expression-evaluation && go test -bench=. -benchmem -count 5 -benchtime=10000x > results/results.out
Benchmark-In-Memory-Cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Dependencies
run: |
echo "Download Dependencies"
go mod tidy
go mod vendor
- name: Benchmark
run: |
echo "Benchmark In-Memory Cache libraries"
cd /home/runner/work/benchmark/benchmark/in-memory-cache && go test -bench=. -benchmem -count 5 -benchtime=100000x > results/results.out