-
Notifications
You must be signed in to change notification settings - Fork 123
61 lines (54 loc) · 1.79 KB
/
benchmarks.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
# Contributed by @GuilhemN in https://github.com/erikbern/ann-benchmarks/pull/233
name: Billion-Scale ANN Benchmarks
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- algorithm: faiss-ivf
library: faissconda
dataset: random-xs
- algorithm: faiss-t1
dataset: random-xs
library: faissconda
- algorithm: faiss-t1
dataset: random-range-xs
library: faissconda
- algorithm: diskann-t2
dataset: random-xs
library: diskann
- algorithm: diskann-t2
dataset: random-range-xs
library: diskann
- algorithm: httpann_example
dataset: random-xs
library: httpann_example
- algorithm: httpann_example
dataset: random-range-xs
library: httpann_example
fail-fast: false
steps:
- uses: actions/checkout@v2 # Pull the repository
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
pip install -r requirements.txt
python install.py
env:
LIBRARY: ${{ matrix.library }}
DATASET: ${{ matrix.dataset }}
- name: Run the benchmark
run: |
python create_dataset.py --dataset $DATASET
python run.py --algorithm $ALGORITHM --max-n-algorithms 2 --dataset $DATASET --timeout 600
sudo chmod -R 777 results/
python plot.py --dataset $DATASET --output plot.png
python data_export.py --output test.csv
env:
ALGORITHM: ${{ matrix.algorithm}}
DATASET: ${{ matrix.dataset }}