Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a267b33

Browse files
committed
store also 1st profile in artifacts
1 parent ac40a64 commit a267b33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎benchmark/benchmark.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@ function runValgrindPhpCgiCommand(
147147
uasort($metricsForMedianArr, fn ($a, $b) => $a['Ir'] <=> $b['Ir']);
148148
$medianRunIndex = array_keys($metricsForMedianArr)[max(0, floor((count($metricsForMedianArr) - 3 /* -1 for count to index, -1 for first slow run due compliation, -1 for second run which is a little slower too */) / 2.0))];
149149

150-
// remove non-median profiles from artifacts
150+
// remove non-first-non-median profiles from artifacts
151151
foreach (range(0, $repeat - 1) as $k) {
152152
$profileOutSpecific = $profileOut . '.' . $k;
153153

154-
if ($k !== $medianRunIndex) {
154+
if ($k !== 0 && $k !== $medianRunIndex) {
155155
unlink($profileOutSpecific);
156156
}
157157
}
158158

159159
// annotate profiles for artifacts
160-
foreach (['startup', $medianRunIndex, 'shutdown'] as $k) {
160+
foreach (['startup', 0, $medianRunIndex, 'shutdown'] as $k) {
161161
$profileOutSpecific = $profileOut . '.' . $k;
162162

163163
runCommand([

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /