-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (40 loc) · 1.28 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
name: Benchmark
on:
push: {}
workflow_call: {}
jobs:
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Start databases
working-directory: ./sample-apps/databases
run: docker compose up --build -d
- name: Run Docker Compose
working-directory: ./sample-apps/flask-mysql
run: |
docker compose -f docker-compose.yml -f docker-compose.benchmark.yml up --build -d
- name: Install K6
uses: grafana/setup-k6-action@v1
- name: Run flask-mysql k6 Benchmark
run: |
k6 run -q ./benchmarks/flask-mysql-benchmarks.js
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
make dev_install
- name: Install aikido_firewall
run: |
make build
mv ./dist/aikido_firewall-*.tar.gz ./dist/aikido_firewall.tar.gz
pip install ./dist/aikido_firewall.tar.gz
- name: run sql benchmarks
run: |
python ./benchmarks/sql_benchmark/sql_benchmark_fw.py
python ./benchmarks/sql_benchmark/sql_benchmark_no_fw.py