Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions .github/workflows/manual-compare-versions-benchmark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Manual Benchmark to compare versions

on:
workflow_dispatch:
inputs:
qdrant_version_1:
description: "Version of qdrant to benchmark (ghcr/<commit-id>, ghcr/my-branch, docker/v1.5.1, ghcr/dev)"
default: ghcr/dev
qdrant_version_2:
description: "Version of qdrant to benchmark (ghcr/<commit-id>, ghcr/my-branch, docker/v1.5.1, ghcr/dev)"
default: docker/master
dataset:
description: "Dataset to benchmark"
default: laion-small-clip
engine_config:
description: "Engine config to benchmark"
default: qdrant-continuous-benchmark

jobs:
prepareImage1:
name: Prepare image ${{ inputs.qdrant_version_1 }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Image for ${{ inputs.qdrant_version_1 }}
run: |
# The branch, tag or SHA to checkout.
export QDRANT_VERSION=${{ inputs.qdrant_version_1 }}
export BEARER_TOKEN="${{ secrets.GITHUB_TOKEN }}"
bash -x tools/compare_versions/prepare_image.sh

prepareImage2:
name: Prepare image ${{ inputs.qdrant_version_1 }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Image for ${{ inputs.qdrant_version_2 }}
run: |
export QDRANT_VERSION=${{ inputs.qdrant_version_2 }}
export BEARER_TOKEN="${{ secrets.GITHUB_TOKEN }}"
bash -x tools/compare_versions/prepare_image.sh

# runBenchmarkForVersion1:
# name: compare - ${{ inputs.qdrant_version_1 }} vs ${{ inputs.qdrant_version_2 }} - ${{ inputs.dataset }}
# needs:
# - prepareImage1
# - prepareImage2
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
# - name: Bench ${{ inputs.qdrant_version_1 }}
# run: |
# export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }}
# export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
# export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}
# export QDRANT_VERSION=${{ inputs.qdrant_version_1 }}
# export DATASETS=${{ inputs.dataset }}
# export ENGINE_NAME=${{ inputs.engine_config }}
# export POSTGRES_TABLE=benchmark_manual
# bash -x tools/setup_ci.sh
# bash -x tools/run_ci.sh
#
# runBenchmarkForVersion2:
# name: compare - ${{ inputs.qdrant_version_1 }} vs ${{ inputs.qdrant_version_2 }} - ${{ inputs.dataset }}
# needs:
# - runBenchmarkForVersion1
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
# - name: Bench ${{ inputs.qdrant_version_2 }}
# run: |
# export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }}
# export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
# export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}
# export QDRANT_VERSION=${{ inputs.qdrant_version_2 }}
# export DATASETS=${{ inputs.dataset }}
# export ENGINE_NAME=${{ inputs.engine_config }}
# export POSTGRES_TABLE=benchmark_manual
# bash -x tools/setup_ci.sh
# bash -x tools/run_ci.sh
Loading