Skip to content

Commit 96990f4

Browse files
committed
Update real-time benchmark config
- Do not run micro_bench.php by default (it would take a very long time to get accurate results) - Measure instruction count by default during the scheduled runs
1 parent c53a20d commit 96990f4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/real-time-benchmark.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ on:
4242
- "0"
4343
- "1"
4444
- "2"
45+
run_micro_bench:
46+
description: 'Whether to run the micro_bench.php test'
47+
required: true
48+
default: "0"
49+
type: choice
50+
options:
51+
- "0"
52+
- "1"
4553
permissions:
4654
contents: read
4755
pull-requests: write
@@ -62,7 +70,8 @@ jobs:
6270
OPCACHE: ${{ inputs.opcache || '1' }}
6371
BASELINE_OPCACHE: ${{ inputs.baseline_opcache || '2' }}
6472
JIT: ${{ inputs.jit || '1' }}
65-
INSTRUCTION_COUNT: ${{ inputs.instruction_count || '0' }}
73+
INSTRUCTION_COUNT: ${{ inputs.instruction_count || '1' }}
74+
RUN_MICRO_BENCH: ${{ inputs.run_micro_bench || '0' }}
6675
YEAR: ""
6776
steps:
6877
- name: Setup benchmark environment
@@ -250,7 +259,10 @@ jobs:
250259
cp ./php-version-benchmarks/config/test/2_symfony_main.ini.dist ./php-version-benchmarks/config/test/2_symfony_main.ini
251260
cp ./php-version-benchmarks/config/test/4_wordpress.ini.dist ./php-version-benchmarks/config/test/4_wordpress.ini
252261
cp ./php-version-benchmarks/config/test/5_bench.php.ini.dist ./php-version-benchmarks/config/test/5_bench.php.ini
253-
cp ./php-version-benchmarks/config/test/6_micro_bench.php.ini.dist ./php-version-benchmarks/config/test/6_micro_bench.php.ini
262+
263+
if [ "${{ env.RUN_MICRO_BENCH }}" -eq "1" ]; then
264+
cp ./php-version-benchmarks/config/test/6_micro_bench.php.ini.dist ./php-version-benchmarks/config/test/6_micro_bench.php.ini
265+
fi
254266
- name: Run benchmark
255267
run: ./php-version-benchmarks/benchmark.sh run aws
256268
- name: Store results

0 commit comments

Comments
 (0)