forked from developmentseed/titiler
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 963 Bytes
/
benchmark.yml
File metadata and controls
41 lines (33 loc) · 963 Bytes
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 every pull request, but only on push to master
on:
push:
branches:
- master
tags:
- '*'
pull_request:
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install siege
run: |
sudo apt update
sudo apt install --yes siege
- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build benchmark
# Let's wait a bit to make sure the docker are up
- name: Sleep for 10 seconds
run: sleep 10s
shell: bash
- name: Run siege (WebMercator TMS)
run: |
siege --file .github/data/urls.txt -b -c 1 -r 100 > /dev/null
- name: Run siege (WGS1984Quad TMS)
run: |
siege --file .github/data/urls_wgs84.txt -b -c 1 -r 100 > /dev/null
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down