1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3'

* PHP-8.3:
  Include branch in benchmarking information
This commit is contained in:
Ilija Tovilo
2023-09-03 13:48:54 +02:00
3 changed files with 8 additions and 1 deletions

View File

@@ -277,6 +277,7 @@ jobs:
- name: Show diff
if: github.event_name == 'pull_request'
run: |-
set -x
php benchmark/generate_diff.php \
${{ github.sha }} \
$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.sha }}) \

View File

@@ -13,6 +13,9 @@ function main() {
global $storeResult;
$data = [];
if (false !== $branch = getenv('GITHUB_REF_NAME')) {
$data['branch'] = $branch;
}
$data['Zend/bench.php'] = runBench(false);
$data['Zend/bench.php JIT'] = runBench(true);
$data['Symfony Demo 2.2.3'] = runSymfonyDemo(false);
@@ -66,7 +69,7 @@ function runWordpress(bool $jit): array {
* easily alter the phar file */
runPhpCommand([
'-d error_reporting=0',
'wp-cli.phar',
'wp-cli.phar',
'core',
'install',
'--url=wordpress.local',

View File

@@ -26,6 +26,9 @@ function main(?string $headCommitHash, ?string $baseCommitHash) {
$output = "| Benchmark | Base ($baseCommitHashShort) | Head ($headCommitHashShort) | Diff |\n";
$output .= "|---|---|---|---|\n";
foreach ($headSummary as $name => $headBenchmark) {
if ($name === 'branch') {
continue;
}
$baseInstructions = $baseSummary[$name]['instructions'] ?? null;
$headInstructions = $headSummary[$name]['instructions'];
$output .= "| $name | "