forked from jason-wolfe/search-index-benchmark-game
-
Notifications
You must be signed in to change notification settings - Fork 45
Refactor web application and other infra fixes #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MBkkt
wants to merge
1
commit into
quickwit-oss:master
Choose a base branch
from
serenedb:mbkkt/some-infra-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,14 +3,16 @@ export | |
|
|
||
| WIKI_SRC = "https://www.dropbox.com/s/wwnfnu441w1ec9p/wiki-articles.json.bz2" | ||
|
|
||
| COMMANDS ?= TOP_100_COUNT TOP_100 COUNT | ||
| COMMANDS ?= TOP_100_COUNT TOP_100 COUNT | ||
|
|
||
| # ENGINES ?= tantivy-0.13 lucene-8.4.0 pisa-0.8.2 rucene-0.1 bleve-0.8.0-scorch rucene-0.1 tantivy-0.11 tantivy-0.14 tantivy-0.15 tantivy-0.16 tantivy-0.17 tantivy-0.18 tantivy-0.19 | ||
| # ENGINES ?= tantivy-0.16 lucene-8.10.1 pisa-0.8.2 bleve-0.8.0-scorch bluge-0.2.2 rucene-0.1 | ||
| # ENGINES ?= tantivy-0.16 tantivy-0.17 tantivy-0.18 tantivy-0.19 | ||
| ENGINES ?= tantivy-0.22 tantivy-0.24 tantivy-0.25 tantivy-main lucene-10.3.0 lucene-10.3.0-bp | ||
| PORT ?= 8080 | ||
| WARMUP_TIME ?= 60 | ||
| NUM_ITER ?= 10 | ||
| SERVE_TYPE ?= serve | ||
|
|
||
| help: | ||
| @grep '^[^#[:space:]].*:' Makefile | ||
|
|
@@ -32,15 +34,17 @@ index: | |
|
|
||
| bench: | ||
| @echo "--- Benchmarking ---" | ||
| @rm -fr results | ||
| @mkdir results | ||
| @python3 src/client.py queries.txt $(ENGINES) | ||
|
|
||
| merge: | ||
| @echo "--- Merging results ---" | ||
| @python3 src/client.py --merge | ||
|
|
||
| compile: | ||
| @echo "--- Compiling binaries ---" | ||
| @for engine in $(ENGINES); do cd ${shell pwd}/engines/$$engine && make compile ; done | ||
|
|
||
| serve: | ||
| @echo "--- Serving results ---" | ||
| @cp results.json web/build/results.json | ||
| @cd web/build && python3 -m http.server $(PORT) | ||
| @cd web/build && python3 ../../web/serve.py $(PORT) | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just to serve gzip file instead of full large json (I sometimes had slow internet connection between me and the server, so it was fix suggest by claude and it actually allows to download less data (500kb vs 3.5 MB) when open this web view). |
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this removed?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because in the PR it works this way:
ENIGNES=1 3 make bench=> produce filesengines/1/results/count.json,engines/3/results/count.json, etc and<benchmark-root>/results.json. Last file is needed to keep old behavior.Also
make mergemerge all enginesresults/into new<benchmakr-root>/results.json.So there's no
resultsdir in the root