|
| 1 | +name: Manual Benchmark to compare versions |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + qdrant_version_1: |
| 7 | + description: "Version of qdrant to benchmark (ghcr/<commit-id>, ghcr/my-branch, docker/v1.5.1, ghcr/dev)" |
| 8 | + default: ghcr/dev |
| 9 | + qdrant_version_2: |
| 10 | + description: "Version of qdrant to benchmark (ghcr/<commit-id>, ghcr/my-branch, docker/v1.5.1, ghcr/dev)" |
| 11 | + default: docker/master |
| 12 | + dataset: |
| 13 | + description: "Dataset to benchmark" |
| 14 | + default: laion-small-clip |
| 15 | + engine_config: |
| 16 | + description: "Engine config to benchmark" |
| 17 | + default: qdrant-continuous-benchmark |
| 18 | + |
| 19 | +jobs: |
| 20 | + prepareImage1: |
| 21 | + name: Prepare image ${{ inputs.qdrant_version_1 }} |
| 22 | + runs-on: ubuntu-latest |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v3 |
| 25 | + - uses: webfactory/[email protected] |
| 26 | + with: |
| 27 | + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} |
| 28 | + - name: Image for ${{ inputs.qdrant_version_1 }} |
| 29 | + run: | |
| 30 | + # The branch, tag or SHA to checkout. |
| 31 | + export QDRANT_VERSION=${{ inputs.qdrant_version_1 }} |
| 32 | + export BEARER_TOKEN="${{ secrets.GITHUB_TOKEN }}" |
| 33 | + bash -x tools/compare_versions/prepare_image.sh |
| 34 | +
|
| 35 | + prepareImage2: |
| 36 | + name: Prepare image ${{ inputs.qdrant_version_1 }} |
| 37 | + runs-on: ubuntu-latest |
| 38 | + steps: |
| 39 | + - uses: actions/checkout@v3 |
| 40 | + - uses: webfactory/[email protected] |
| 41 | + with: |
| 42 | + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} |
| 43 | + - name: Image for ${{ inputs.qdrant_version_2 }} |
| 44 | + run: | |
| 45 | + export QDRANT_VERSION=${{ inputs.qdrant_version_2 }} |
| 46 | + export BEARER_TOKEN="${{ secrets.GITHUB_TOKEN }}" |
| 47 | + bash -x tools/compare_versions/prepare_image.sh |
| 48 | +
|
| 49 | +# runBenchmarkForVersion1: |
| 50 | +# name: compare - ${{ inputs.qdrant_version_1 }} vs ${{ inputs.qdrant_version_2 }} - ${{ inputs.dataset }} |
| 51 | +# needs: |
| 52 | +# - prepareImage1 |
| 53 | +# - prepareImage2 |
| 54 | +# runs-on: ubuntu-latest |
| 55 | +# steps: |
| 56 | +# - uses: actions/checkout@v3 |
| 57 | +# - uses: webfactory/[email protected] |
| 58 | +# with: |
| 59 | +# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} |
| 60 | +# - name: Bench ${{ inputs.qdrant_version_1 }} |
| 61 | +# run: | |
| 62 | +# export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }} |
| 63 | +# export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} |
| 64 | +# export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} |
| 65 | +# export QDRANT_VERSION=${{ inputs.qdrant_version_1 }} |
| 66 | +# export DATASETS=${{ inputs.dataset }} |
| 67 | +# export ENGINE_NAME=${{ inputs.engine_config }} |
| 68 | +# export POSTGRES_TABLE=benchmark_manual |
| 69 | +# bash -x tools/setup_ci.sh |
| 70 | +# bash -x tools/run_ci.sh |
| 71 | +# |
| 72 | +# runBenchmarkForVersion2: |
| 73 | +# name: compare - ${{ inputs.qdrant_version_1 }} vs ${{ inputs.qdrant_version_2 }} - ${{ inputs.dataset }} |
| 74 | +# needs: |
| 75 | +# - runBenchmarkForVersion1 |
| 76 | +# runs-on: ubuntu-latest |
| 77 | +# steps: |
| 78 | +# - uses: actions/checkout@v3 |
| 79 | +# - uses: webfactory/[email protected] |
| 80 | +# with: |
| 81 | +# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} |
| 82 | +# - name: Bench ${{ inputs.qdrant_version_2 }} |
| 83 | +# run: | |
| 84 | +# export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }} |
| 85 | +# export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} |
| 86 | +# export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} |
| 87 | +# export QDRANT_VERSION=${{ inputs.qdrant_version_2 }} |
| 88 | +# export DATASETS=${{ inputs.dataset }} |
| 89 | +# export ENGINE_NAME=${{ inputs.engine_config }} |
| 90 | +# export POSTGRES_TABLE=benchmark_manual |
| 91 | +# bash -x tools/setup_ci.sh |
| 92 | +# bash -x tools/run_ci.sh |
0 commit comments