forked from quickwit-oss/search-benchmark-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (25 loc) · 876 Bytes
/
Makefile
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
CORPUS = `pwd`/wiki-articles.json
export
COMMANDS = COUNT NO_SCORE TOP_10
ENGINES = `ls engines`
all: index
corpus.json:
echo "Download corpus.json from https://www.dropbox.com/s/wwnfnu441w1ec9p/wiki-articles.json.bz2?dl=0"
clean:
rm -fr results
for engine in $(ENGINES); do cd ${shell pwd}/engines/$$engine && make clean ; done
# Target to build the indexes of
# all of the search engine
index: $(INDEX_DIRECTORIES)
for engine in $(ENGINES); do cd ${shell pwd}/engines/$$engine && make index ; done
# Target to run the query benchmark for
# all of the search engines
bench: index compile
@rm -fr results
@mkdir results
python3 src/client.py queries.txt $(ENGINES)
compile:
for engine in $(ENGINES); do cd ${shell pwd}/engines/$$engine && make compile ; done
serve:
# cp results.json web/output/results.json
cd web/output && python -m SimpleHTTPServer 8000