File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
if : github.event_name == 'workflow_dispatch' || (github.event.issue.pull_request && contains(github.event.comment.body, '!bench'))
12
12
steps :
13
- - name : Set up Go
14
- uses : actions/setup-go@v3
15
- with :
16
- go-version : 1.19
17
- check-latest : true
18
- cache : true
19
-
20
- - name : Start Redis
21
- uses : shogo82148/actions-setup-redis@v1
22
- with :
23
- auto-start : true
24
- redis-port : 6379
25
- redis-version : ' 6.2'
26
- redis-conf : ' requirepass RedisPassw0rd'
27
-
28
- - name : Start MySQL
29
- run : sudo /etc/init.d/mysql start
30
-
31
13
- name : Install Hyperfine
32
14
run : |
33
15
wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb
48
30
with :
49
31
ref : ${{ steps.sha.outputs.result || github.sha }}
50
32
33
+ - name : Set up Go
34
+ uses : actions/setup-go@v3
35
+ with :
36
+ go-version : 1.19
37
+ check-latest : true
38
+ cache : true
39
+
51
40
- name : Build PR
52
41
run : |
53
42
go build -o bench-pr ./bench
62
51
run : |
63
52
go build -o bench-main ./bench
64
53
54
+ - name : Start Redis
55
+ uses : shogo82148/actions-setup-redis@v1
56
+ with :
57
+ auto-start : true
58
+ redis-port : 6379
59
+ redis-version : ' 6.2'
60
+ redis-conf : ' requirepass RedisPassw0rd'
61
+
62
+ - name : Start MySQL
63
+ run : sudo /etc/init.d/mysql start
64
+
65
65
- name : Run benchmarks - mysql
66
66
run : |
67
67
hyperfine --warmup 1 --export-markdown bench-mysql.md -n 'mysql-main' './bench-main -runs 2' -n 'mysql-pr' './bench-pr -runs 2'
You can’t perform that action at this time.
0 commit comments