-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (47 loc) · 1.31 KB
/
bench.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
51
52
53
54
55
name: bench
on:
workflow_dispatch:
pull_request:
push:
branches: [master]
jobs:
benchee:
runs-on: ubuntu-latest
env:
MIX_ENV: bench
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123
env:
options: >-
--health-cmd nc -zw3 localhost 8124
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: 1
otp-version: 27
- uses: actions/cache@v4
with:
path: |
deps
_build
key: bench-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
bench-${{ github.head_ref || github.ref }}-
bench-refs/heads/master-
- run: mix deps.get --only $MIX_ENV
- run: mix compile --warnings-as-errors
- run: mkdir results
- run: mix run bench/encode.exs | tee results/encode.txt
# - run: mix run bench/insert.exs | tee results/insert.txt
# - run: mix run bench/stream.exs | tee results/stream.txt
- uses: actions/upload-artifact@v4
with:
name: results
path: results/*.txt