-
Notifications
You must be signed in to change notification settings - Fork 163
81 lines (66 loc) · 2.5 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: hello-world
on:
push:
env:
DAFT_ANALYTICS_ENABLED: '0'
TPCH_SCALE_FACTOR: '4'
TPCH_NUM_PARTS: '32'
PYTHON_VERSION: '3.9'
jobs:
profile-daft:
runs-on: [self-hosted, linux, x64, bench]
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- run: df -h
- run: ls -lah /dev/disk/by-id
# - uses: actions/checkout@v3
# - uses: moonrepo/setup-rust@v0
# with:
# cache: false
# - uses: Swatinem/rust-cache@v2
# with:
# key: ${{ runner.os }}-profile
# cache-all-crates: 'true'
# - name: Set up Python ${{ env.PYTHON_VERSION }}
# uses: deadsnakes/[email protected]
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# - name: Setup Virtual Env
# run: |
# python -m venv venv
# echo "$GITHUB_WORKSPACE/venv/bin" >> $GITHUB_PATH
# - name: Install dependencies
# run: |
# pip install --upgrade pip
# pip install -r requirements-dev.txt
# - name: Build Rust Library
# env:
# RUSTFLAGS: -Ctarget-cpu=native
# run: |
# source activate
# maturin develop --release
# - uses: actions/cache@v3
# env:
# cache-name: profiling-cache-tpch-data
# with:
# path: data/tpch-dbgen
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.TPCH_SCALE_FACTOR }}-${{ env.TPCH_NUM_PARTS }}-${{ hashFiles('tests/integration/test_tpch.py', 'benchmarking/tpch/**') }}
# - name: Generate TPCH Data
# run: python benchmarking/tpch/data_generation.py --scale_factor=${{ env.TPCH_SCALE_FACTOR }} --num_parts=${{ env.TPCH_NUM_PARTS }} --generate_parquet
# - name: Run Profiling on TPCH Benchmark
# env:
# DAFT_DEVELOPER_USE_THREAD_POOL: '0'
# run: |
# py-spy record --native --function -o tpch-${{github.run_id}}.txt -f speedscope -- python benchmarking/tpch/__main__.py --scale_factor=${{ env.TPCH_SCALE_FACTOR }} --num_parts=${{ env.TPCH_NUM_PARTS }} --skip_warmup || true
# - name: Run GIL Profiling on TPCH Benchmark
# env:
# DAFT_DEVELOPER_USE_THREAD_POOL: '0'
# run: |
# py-spy record --native --function --gil -o tpch-gil-${{github.run_id}}.txt -f speedscope -- python benchmarking/tpch/__main__.py --scale_factor=${{ env.TPCH_SCALE_FACTOR }} --num_parts=${{ env.TPCH_NUM_PARTS }} --skip_warmup || true
# - name: Upload Profile
# uses: actions/upload-artifact@v3
# with:
# name: speedscope-profile
# path: tpch-*.txt