Skip to content

Commit

Permalink
parameter for benchamrk size, default to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 20, 2023
1 parent e7c5320 commit a2e83ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ concurrency:

on:
workflow_dispatch:
inputs:
size:
description: 'number of features to load'
required: true
default: 100
type: number

push:
branches:
- main
Expand Down Expand Up @@ -63,7 +70,7 @@ jobs:
run: ./scripts/restart.sh

- name: Run Benchmark
run: ./tests/benchmark/time.sh
run: ./tests/benchmark/time.sh ${{ inputs.size }}

- name: Create plots
run: ./tests/benchmark/plot.py
Expand Down
3 changes: 2 additions & 1 deletion tests/benchmark/time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ OUTPUT_PATH="tests/benchmark/results"
mkdir -p ${OUTPUT_PATH}
rm -f ${OUTPUT_PATH}/benchmark.dat

SIZE=100000
SIZE=${1:-100000}

LAYERS=( point_2056_10fields point_2056_10fields_local_geom nogeom_10fields nogeom_100fields line_2056_10fields line_2056_10fields_local_geom polygon_2056 polygon_2056_local_geom secretlayer )


Expand Down

0 comments on commit a2e83ea

Please sign in to comment.