File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 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"
4553permissions :
4654 contents : read
4755 pull-requests : write
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
You can’t perform that action at this time.
0 commit comments