mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-02 04:50:38 +00:00
Add a new benchmark data series for prefetching.
Also run benchmarks with the seqscan prefetching (commit f44afbaf62)
enabled.
Renames the 'neon-captest' test to 'neon-captest-reuse', for clarity
This commit is contained in:
18
.github/workflows/benchmarking.yml
vendored
18
.github/workflows/benchmarking.yml
vendored
@@ -144,9 +144,10 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# neon-captest: Run pgbench, reusing existing project
|
# neon-captest-new: Run pgbench in a freshly created project
|
||||||
# neon-captest-new: Same, but on a freshly created project
|
# neon-captest-reuse: Same, but reusing existing project
|
||||||
platform: [ neon-captest, neon-captest-new, rds-aurora ]
|
# neon-captest-prefetch: Same, with prefetching enabled (new project)
|
||||||
|
platform: [ neon-captest-new, neon-captest-reuse, neon-captest-prefetch, rds-aurora ]
|
||||||
|
|
||||||
runs-on: dev
|
runs-on: dev
|
||||||
container:
|
container:
|
||||||
@@ -164,7 +165,7 @@ jobs:
|
|||||||
sudo apt install -y postgresql-14
|
sudo apt install -y postgresql-14
|
||||||
|
|
||||||
- name: Create Neon Project
|
- name: Create Neon Project
|
||||||
if: matrix.platform == 'neon-captest-new'
|
if: matrix.platform != 'neon-captest-reuse'
|
||||||
id: create-neon-project
|
id: create-neon-project
|
||||||
uses: ./.github/actions/neon-project-create
|
uses: ./.github/actions/neon-project-create
|
||||||
with:
|
with:
|
||||||
@@ -175,17 +176,20 @@ jobs:
|
|||||||
id: set-up-connstr
|
id: set-up-connstr
|
||||||
run: |
|
run: |
|
||||||
case "${PLATFORM}" in
|
case "${PLATFORM}" in
|
||||||
neon-captest)
|
neon-captest-reuse)
|
||||||
CONNSTR=${{ secrets.BENCHMARK_CAPTEST_CONNSTR }}
|
CONNSTR=${{ secrets.BENCHMARK_CAPTEST_CONNSTR }}
|
||||||
;;
|
;;
|
||||||
neon-captest-new)
|
neon-captest-new)
|
||||||
CONNSTR=${{ steps.create-neon-project.outputs.dsn }}
|
CONNSTR=${{ steps.create-neon-project.outputs.dsn }}
|
||||||
;;
|
;;
|
||||||
|
neon-captest-prefetch)
|
||||||
|
CONNSTR=${{ steps.create-neon-project.outputs.dsn }}?options=-cenable_seqscan_prefetch%3Don%20-cseqscan_prefetch_buffers%3D10
|
||||||
|
;;
|
||||||
rds-aurora)
|
rds-aurora)
|
||||||
CONNSTR=${{ secrets.BENCHMARK_RDS_CONNSTR }}
|
CONNSTR=${{ secrets.BENCHMARK_RDS_CONNSTR }}
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 2>&1 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest', 'neon-captest-new' or 'rds-aurora'"
|
echo 2>&1 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'neon-captest-new', 'neon-captest-prefetch' or 'rds-aurora'"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -246,7 +250,7 @@ jobs:
|
|||||||
build_type: ${{ env.BUILD_TYPE }}
|
build_type: ${{ env.BUILD_TYPE }}
|
||||||
|
|
||||||
- name: Delete Neon Project
|
- name: Delete Neon Project
|
||||||
if: ${{ matrix.platform == 'neon-captest-new' && always() }}
|
if: ${{ matrix.platform != 'neon-captest-reuse' && always() }}
|
||||||
uses: ./.github/actions/neon-project-delete
|
uses: ./.github/actions/neon-project-delete
|
||||||
with:
|
with:
|
||||||
environment: dev
|
environment: dev
|
||||||
|
|||||||
Reference in New Issue
Block a user