$noSpaceName = str_replace(' ', ' ', $name); $id = $row[DATA_ID]; printf('<tr><td><a href="program.php?test=%s&lang=%s&id=%d" title="Read the Program Source Code : %s %s">%s%s%s</a></td>', $k, $lang, $id, $name, $testname, $tag0, $noSpaceName, $tag1); $fc = number_format($row[DATA_FULLCPU], 2); if ($row[DATA_MEMORY] == 0) { $kb = '?'; } else { $kb = number_format($row[DATA_MEMORY]); } $gz = $row[DATA_GZ]; if ($row[DATA_ELAPSED] > 0) { $e = number_format($row[DATA_ELAPSED], 2); } else { $e = ''; } $ld = CpuLoad($row); if (isset($mismatches[$k]) && $mismatches[$k]) { $ld .= ' †'; $hasMismatches = true; } if ($row[DATA_STATUS] > PROGRAM_TIMEOUT) { printf('<td>%s</td><td %s>%s</td><td>%s</td><td>%d</td><td class="smaller"> %s</td></tr>', $fc, $ELAPSED, $e, $kb, $gz, $ld); } else { printf('<td colspan="2"><span class="message">%s</span></td><td colspan="2"></td><td></td></tr>', StatusMessage($row[DATA_STATUS])); } $ELAPSED = ''; } elseif (!isset($row)) { printf('<td></td><td colspan="2"><span class="message">%s</span></td><td colspan="2"></td><td></td></tr>', 'No program'); } } } else {
$id = $d[DATA_ID]; $fullcpu = $d[DATA_FULLCPU]; if ($TestName == 'startup') { $fc = number_format($fullcpu / $testValue, 4); $kb = ' '; $e = ' '; $ld = ' '; } else { $fc = PTime($fullcpu); if ($d[DATA_MEMORY] == 0) { $kb = '?'; } else { $kb = number_format((double) $d[DATA_MEMORY]); } $e = PTime($d[DATA_ELAPSED]); $ld = CpuLoad($d); } $gz = $d[DATA_GZ]; printf('<tr>'); echo "\n"; printf('<td>%s</td><td><a href="program.php?test=%s&lang=%s&id=%d" title="Read the Program Source Code : %s">%s</a></td>', PFx($ratio), $SelectedTest, $k, $id, $TipName, $HtmlName); echo "\n"; printf('<td%s>%s</td><td%s>%s</td><td%s>%s</td><td%s>%d</td><td class="smaller"> %s</td>', $CPU, $fc, $ELAPSED, $e, $MEM, $kb, $GZBYTES, $gz, $ld); echo "\n"; echo "</tr>\n"; } unset($better); ?> <?php foreach ($Langs as $k => $v) {
$elapsed = ' '; $load = ' '; $fullcpu = StatusMessage($d[DATA_STATUS]); } else { if ($d[DATA_MEMORY] == 0) { $kb = '?'; } else { if ($TestName == 'startup') { $kb = ' '; } else { $kb = number_format((double) $d[DATA_MEMORY]); } } $fullcpu = number_format($d[DATA_FULLCPU], 2); $elapsed = ElapsedTime($d); $load = CpuLoad($d); } printf('<tr class="a"><td class="r"><span class="numN">%s</span></td><td class="r">%s</td><td class="r">%s</td><td class="r">%s</td><td class="r">%d</td><td class="smaller"> %s</td></tr>', $n, $fullcpu, $elapsed, $kb, $d[DATA_GZ], $load); echo "\n"; if ($d[DATA_STATUS] < 0) { break; } } } ?> </table> <p>Read the <a href="#log">↓ make, command line, and program output logs</a> to see how this program was run.</p> <p>Read <a href="performance.php?test=<?php echo $SelectedTest;