Skip to content

Commit 0696173

Browse files
committed
match oriignal data
1 parent a978f8c commit 0696173

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

benchmark/benchmark.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ function runValgrindPhpCgiCommand(
170170
]);
171171
}
172172

173-
return ['instructions' => $metricsArr[$medianRunIndex]['Ir']];
173+
$instructions = $metricsArr[$medianRunIndex]['Ir'];
174+
if ($repeat === 1) { // return the same data as before https://github.com/php/php-src/pull/13162
175+
$instructions += $metricsArr['startup']['Ir'];
176+
}
177+
178+
return ['instructions' => $instructions];
174179
}
175180

176181
/**

0 commit comments

Comments
 (0)