This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into obkv-documents
- Loading branch information
Showing
30 changed files
with
301 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Benchmarks indexing (cron) | ||
|
||
on: | ||
schedule: | ||
- cron: "30 0 * * FRI" # every friday at 00:30 | ||
|
||
env: | ||
BENCH_NAME: "indexing" | ||
|
||
jobs: | ||
benchmarks: | ||
name: Run and upload benchmarks | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
# Set variables | ||
- name: Set current branch name | ||
shell: bash | ||
run: echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: current_branch | ||
- name: Set normalized current branch name # Replace `/` by `_` in branch name to avoid issues when pushing to S3 | ||
shell: bash | ||
run: echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')" | ||
id: normalized_current_branch | ||
- name: Set shorter commit SHA | ||
shell: bash | ||
run: echo "##[set-output name=short;]$(echo $GITHUB_SHA | cut -c1-8)" | ||
id: commit_sha | ||
- name: Set file basename with format "dataset_branch_commitSHA" | ||
shell: bash | ||
run: echo "##[set-output name=basename;]$(echo ${BENCH_NAME}${{ steps.normalized_current_branch.outputs.name }}_${{ steps.commit_sha.outputs.short }})" | ||
id: file | ||
|
||
# Run benchmarks | ||
- name: Run benchmarks - Dataset ${BENCH_NAME} - Branch ${{ steps.current_branch.outputs.name }} - Commit ${{ steps.commit_sha.outputs.short }} | ||
run: | | ||
cd benchmarks | ||
cargo bench --bench ${BENCH_NAME} -- --save-baseline ${{ steps.file.outputs.basename }} | ||
# Generate critcmp files | ||
- name: Install critcmp | ||
run: cargo install critcmp | ||
- name: Export cripcmp file | ||
run: | | ||
critcmp --export ${{ steps.file.outputs.basename }} > ${{ steps.file.outputs.basename }}.json | ||
# Upload benchmarks | ||
- name: Upload ${{ steps.file.outputs.basename }}.json to DO Spaces # DigitalOcean Spaces = S3 | ||
uses: BetaHuhn/do-spaces-action@v2 | ||
with: | ||
access_key: ${{ secrets.DO_SPACES_ACCESS_KEY }} | ||
secret_key: ${{ secrets.DO_SPACES_SECRET_KEY }} | ||
space_name: ${{ secrets.DO_SPACES_SPACE_NAME }} | ||
space_region: ${{ secrets.DO_SPACES_SPACE_REGION }} | ||
source: ${{ steps.file.outputs.basename }}.json | ||
out_dir: critcmp_results | ||
|
||
# Helper | ||
- name: 'README: compare with another benchmark' | ||
run: | | ||
echo "${{ steps.file.outputs.basename }}.json has just been pushed." | ||
echo 'How to compare this benchmark with another one?' | ||
echo ' - Check the available files with: ./benchmarks/scripts/list.sh' | ||
echo " - Run the following command: ./benchmaks/scipts/compare.sh <file-to-compare-with> ${{ steps.file.outputs.basename }}.json" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Benchmarks search songs (cron) | ||
|
||
on: | ||
schedule: | ||
- cron: "30 08 * * FRI" # every friday at 08:30 | ||
|
||
env: | ||
BENCH_NAME: "search_songs" | ||
|
||
jobs: | ||
benchmarks: | ||
name: Run and upload benchmarks | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
# Set variables | ||
- name: Set current branch name | ||
shell: bash | ||
run: echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: current_branch | ||
- name: Set normalized current branch name # Replace `/` by `_` in branch name to avoid issues when pushing to S3 | ||
shell: bash | ||
run: echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')" | ||
id: normalized_current_branch | ||
- name: Set shorter commit SHA | ||
shell: bash | ||
run: echo "##[set-output name=short;]$(echo $GITHUB_SHA | cut -c1-8)" | ||
id: commit_sha | ||
- name: Set file basename with format "dataset_branch_commitSHA" | ||
shell: bash | ||
run: echo "##[set-output name=basename;]$(echo ${BENCH_NAME}${{ steps.normalized_current_branch.outputs.name }}_${{ steps.commit_sha.outputs.short }})" | ||
id: file | ||
|
||
# Run benchmarks | ||
- name: Run benchmarks - Dataset ${BENCH_NAME} - Branch ${{ steps.current_branch.outputs.name }} - Commit ${{ steps.commit_sha.outputs.short }} | ||
run: | | ||
cd benchmarks | ||
cargo bench --bench ${BENCH_NAME} -- --save-baseline ${{ steps.file.outputs.basename }} | ||
# Generate critcmp files | ||
- name: Install critcmp | ||
run: cargo install critcmp | ||
- name: Export cripcmp file | ||
run: | | ||
critcmp --export ${{ steps.file.outputs.basename }} > ${{ steps.file.outputs.basename }}.json | ||
# Upload benchmarks | ||
- name: Upload ${{ steps.file.outputs.basename }}.json to DO Spaces # DigitalOcean Spaces = S3 | ||
uses: BetaHuhn/do-spaces-action@v2 | ||
with: | ||
access_key: ${{ secrets.DO_SPACES_ACCESS_KEY }} | ||
secret_key: ${{ secrets.DO_SPACES_SECRET_KEY }} | ||
space_name: ${{ secrets.DO_SPACES_SPACE_NAME }} | ||
space_region: ${{ secrets.DO_SPACES_SPACE_REGION }} | ||
source: ${{ steps.file.outputs.basename }}.json | ||
out_dir: critcmp_results | ||
|
||
# Helper | ||
- name: 'README: compare with another benchmark' | ||
run: | | ||
echo "${{ steps.file.outputs.basename }}.json has just been pushed." | ||
echo 'How to compare this benchmark with another one?' | ||
echo ' - Check the available files with: ./benchmarks/scripts/list.sh' | ||
echo " - Run the following command: ./benchmaks/scipts/compare.sh <file-to-compare-with> ${{ steps.file.outputs.basename }}.json" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Benchmarks search wikipedia articles (cron) | ||
|
||
on: | ||
schedule: | ||
- cron: "30 16 * * FRI" # every friday at 16:30 (it’s snacky snack-time!) | ||
|
||
env: | ||
BENCH_NAME: "search_wiki" | ||
|
||
jobs: | ||
benchmarks: | ||
name: Run and upload benchmarks | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
# Set variables | ||
- name: Set current branch name | ||
shell: bash | ||
run: echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: current_branch | ||
- name: Set normalized current branch name # Replace `/` by `_` in branch name to avoid issues when pushing to S3 | ||
shell: bash | ||
run: echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')" | ||
id: normalized_current_branch | ||
- name: Set shorter commit SHA | ||
shell: bash | ||
run: echo "##[set-output name=short;]$(echo $GITHUB_SHA | cut -c1-8)" | ||
id: commit_sha | ||
- name: Set file basename with format "dataset_branch_commitSHA" | ||
shell: bash | ||
run: echo "##[set-output name=basename;]$(echo ${BENCH_NAME}${{ steps.normalized_current_branch.outputs.name }}_${{ steps.commit_sha.outputs.short }})" | ||
id: file | ||
|
||
# Run benchmarks | ||
- name: Run benchmarks - Dataset ${BENCH_NAME} - Branch ${{ steps.current_branch.outputs.name }} - Commit ${{ steps.commit_sha.outputs.short }} | ||
run: | | ||
cd benchmarks | ||
cargo bench --bench ${BENCH_NAME} -- --save-baseline ${{ steps.file.outputs.basename }} | ||
# Generate critcmp files | ||
- name: Install critcmp | ||
run: cargo install critcmp | ||
- name: Export cripcmp file | ||
run: | | ||
critcmp --export ${{ steps.file.outputs.basename }} > ${{ steps.file.outputs.basename }}.json | ||
# Upload benchmarks | ||
- name: Upload ${{ steps.file.outputs.basename }}.json to DO Spaces # DigitalOcean Spaces = S3 | ||
uses: BetaHuhn/do-spaces-action@v2 | ||
with: | ||
access_key: ${{ secrets.DO_SPACES_ACCESS_KEY }} | ||
secret_key: ${{ secrets.DO_SPACES_SECRET_KEY }} | ||
space_name: ${{ secrets.DO_SPACES_SPACE_NAME }} | ||
space_region: ${{ secrets.DO_SPACES_SPACE_REGION }} | ||
source: ${{ steps.file.outputs.basename }}.json | ||
out_dir: critcmp_results | ||
|
||
# Helper | ||
- name: 'README: compare with another benchmark' | ||
run: | | ||
echo "${{ steps.file.outputs.basename }}.json has just been pushed." | ||
echo 'How to compare this benchmark with another one?' | ||
echo ' - Check the available files with: ./benchmarks/scripts/list.sh' | ||
echo " - Run the following command: ./benchmaks/scipts/compare.sh <file-to-compare-with> ${{ steps.file.outputs.basename }}.json" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "helpers" | ||
version = "0.11.0" | ||
version = "0.12.0" | ||
authors = ["Clément Renault <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "http-ui" | ||
description = "The HTTP user interface of the milli search engine" | ||
version = "0.11.0" | ||
version = "0.12.0" | ||
authors = ["Clément Renault <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infos" | ||
version = "0.11.0" | ||
version = "0.12.0" | ||
authors = ["Clément Renault <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "milli" | ||
version = "0.11.0" | ||
version = "0.12.0" | ||
authors = ["Kerollmops <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains 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 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 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 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 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
Oops, something went wrong.