forked from erikbern/ann-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (94 loc) · 3.4 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: ANN benchmarks
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- library: annoy
dataset: random-xs-20-angular
- library: dolphinn
dataset: random-xs-20-angular
- library: faiss
dataset: random-xs-20-angular
- library: flann
dataset: random-xs-20-angular
- library: kgraph
dataset: random-xs-20-angular
- library: milvus
dataset: random-xs-20-angular
- library: mrpt
dataset: random-xs-20-angular
- library: n2
dataset: random-xs-20-angular
- library: nearpy
dataset: random-xs-20-angular
- library: ngt
dataset: random-xs-20-angular
- library: nmslib
dataset: random-xs-20-angular
- library: hnswlib
dataset: random-xs-20-angular
- library: puffinn
dataset: random-xs-20-angular
- library: pynndescent
dataset: random-xs-20-angular
- library: rpforest
dataset: random-xs-20-angular
- library: sklearn
dataset: random-xs-20-angular
- library: sptag
dataset: random-xs-20-angular
- library: mih
dataset: random-xs-16-hamming
- library: datasketch
dataset: random-s-jaccard
- library: scann
dataset: random-xs-20-angular
- library: elasticsearch
dataset: random-xs-20-angular
- library: elastiknn
dataset: random-xs-20-angular
- library: opensearchknn
dataset: random-xs-20-angular
- library: diskann
dataset: random-xs-20-angular
- library: puffinn
dataset: random-s-jaccard
- library: pynndescent
dataset: random-s-jaccard
- library: vespa
dataset: random-xs-20-angular
- library: scipy
dataset: random-xs-20-angular
- library: vald
dataset: random-xs-20-angular
- library: vearch
dataset: random-xs-20-angular
fail-fast: false
steps:
- uses: actions/checkout@v2 # Pull the repository
- name: Install various apt packages
run: sudo apt-get install -y libhdf5-dev python3-numpy python3-scipy python3-matplotlib python3-sklearn
- name: Install dependencies
run: |
pip3 install -r requirements.txt
python3 install.py
env:
LIBRARY: ${{ matrix.library }}
DATASET: ${{ matrix.dataset }}
- name: Run the benchmark
run: |
python3 run.py --docker-tag ann-benchmarks-${LIBRARY} --max-n-algorithms 5 --dataset $DATASET --run-disabled --timeout 300
python3 run.py --docker-tag ann-benchmarks-${LIBRARY} --max-n-algorithms 5 --dataset $DATASET --run-disabled --batch --timeout 300
sudo chmod -R 777 results/
python3 plot.py --dataset $DATASET --output plot.png
python3 plot.py --dataset $DATASET --output plot-batch.png --batch
python3 data_export.py --out test.csv
python3 -m unittest test/test-metrics.py
python3 -m unittest test/test-jaccard.py
python3 create_website.py --outputdir . --scatter --latex
env:
LIBRARY: ${{ matrix.library }}
DATASET: ${{ matrix.dataset }}