-
Notifications
You must be signed in to change notification settings - Fork 110
40 lines (37 loc) · 1.02 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
name: Benches
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUST_LOG: "off"
SPIDER_BENCH_URL: http://localhost:3000
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Local Web server
run: |
git clone https://github.com/tailwindlabs/tailwindcss.com && cd tailwindcss.com
yarn && yarn build
yarn start & true
- name: Run Benchmark Compare OSS
run: cargo bench --bench crawl
- name: Run Benchmark Compare OSS - Features[decentralized]
run: cargo bench --bench crawl --features decentralized