printf('<td>%s</td><td>%s</td><td></td><td>%s</td><td></td>', $message, $e, $gz); echo "</tr>\n"; unset($No_Program_Langs[$k]); } } } ?> <?php if (sizeof($Special) > 0) { printf('<tr><th colspan="7"><a href="%shelp.php#alternative" name="alt" title="? Help">"interesting alternative" programs</a></th></tr>', CORE_SITE); foreach ($Special as $d) { $k = $d[DATA_LANG]; $Name = $Langs[$k][LANG_FULL]; $TipName = $Name . IdName($d[DATA_ID]); $HtmlName = $Langs[$k][LANG_HTML] . IdName($d[DATA_ID]); if ($Sort == 'fullcpu') { if ($first[DATA_FULLCPU] == 0) { $ratio = 0; } else { $ratio = $d[DATA_FULLCPU] / $first[DATA_FULLCPU]; } } elseif ($Sort == 'elapsed') { if ($first[DATA_ELAPSED] == 0) { $ratio = 0; } else { $ratio = $d[DATA_ELAPSED] / $first[DATA_ELAPSED]; } } elseif ($Sort == 'kb') { if ($TestName == 'startup' || $first[DATA_MEMORY] == 0) { $ratio = 0;
} if ($is_start) { echo " <tbody>\n"; if ($status == 0) { echo " <tr>\n"; echo " <th>\n"; echo " <th>secs\n"; echo " <th>N\n"; echo " <th>KB\n"; echo " <th>gz\n"; echo " <th>cpu\n"; echo " <th>cpu load\n"; } $is_start = FALSE; } echo " <tr>\n"; $TestName = $Tests[$row[DATA_TEST]][TEST_NAME]; $nav = '"./program.php?test=' . $test . '&lang=' . $row[DATA_LANG] . '&id=' . $id . '"'; echo " <td><a href={$nav}>", $TestName, " ", IdName($id), "</a>\n"; echo " <td" . $e_message . ">", $e, "\n"; echo " <td>", $n, "\n"; echo " <td>", $kb, "\n"; echo " <td>", $gz, "\n"; echo " <td>", $fc, "\n"; echo ' <td class="message">', $ld, "\n"; } ?> </table> </section> </article>
$test = $row[DATA_TEST]; $id = $row[DATA_ID]; $TestName = $Tests[$row[DATA_TEST]][TEST_NAME]; $status = $row[DATA_STATUS]; $BAR = ''; if (isset($prevTest) && isset($prevId)) { if ($test != $prevTest || $id != $prevId) { $BAR = ' class="bar"'; } elseif (isset($prevStatus) && $prevStatus < 0) { continue; } } $prevTest = $test; $prevId = $id; $prevStatus = $status; printf('<tr><td %s><a href="program.php?test=%s&lang=%s&id=%d" title="Read the Program Source Code : %s %s %s">%s %s</a></td>', $BAR, $test, $row[DATA_LANG], $id, $TestName, $LangName, IdName($id), $TestName, IdName($id)); echo "\n"; if ($row[DATA_TESTVALUE] == 0) { $n = '?'; } else { $n = ' ' . number_format($row[DATA_TESTVALUE]); } if ($status < 0) { $kb = ' '; $fullcpu = ' '; $elapsed = ' '; $load = ' '; $fullcpu = StatusMessage($row[DATA_STATUS]); } else { if ($row[DATA_MEMORY] == 0) { $kb = '?';
<?php // Copyright (c) Isaac Gouy 2004-2014 ?> <?php MkMenuForm($Tests, $SelectedTest, $Langs, $SelectedLang, $Id); $TestName = $Tests[$SelectedTest][TEST_NAME]; $TestTag = $Tests[$SelectedTest][TEST_TAG]; $LangName = $Langs[$SelectedLang][LANG_FULL]; $SourceCodeName = $TestName . ' ' . $LangName . IdName($Id) . ' program'; ?> <h2><a href="#measurements" name="measurements"> performance measurements</a></h2> <p>Each table row shows performance measurements for this <?php echo $LangName; ?> program with a particular <a href="<?php echo CORE_SITE; ?> play.html#inputvalue" title="? Help">command-line input value N</a>.</p> <table> <colgroup span="4" class="num"></colgroup> <tr> <th><a href="<?php echo CORE_SITE; ?> play.html#process" title="How do you measure the programs?"> N </a></th> <th><a href="<?php
// DATA //////////////////////////////////////////////// $Data = ProgramData(DATA_PATH . 'ndata.csv', $T, $L, $I, $Langs, $Incl, $Excl); if (sizeof($Data) > 0) { $I = $Data[0][DATA_ID]; } $Id = ''; if ($I > 1) { $Id = SEPARATOR . $I; } $timeUsed = 'Elapsed secs'; // HEADER //////////////////////////////////////////////// $mark = MarkTime(); $mark = $mark . ' ' . SITE_NAME; $TestName = $Tests[$T][TEST_NAME]; $LangName = $Langs[$L][LANG_FULL]; $Title = $Available ? $TestName . ' ' . $LangName . IdName($I) . ' program' : 'Not Available'; $bannerUrl = CORE_SITE; $faqUrl = CORE_SITE . 'play.html'; // ABOUT //////////////////////////////////////////////// $A = HtmlFragment(VERSION_PATH . $L . SEPARATOR . 'version.php'); $About =& new Template(ABOUT_PROGRAMS_PATH); $AboutTemplateName = $T . SEPARATOR . $L . $Id . SEPARATOR . 'about.tpl.php'; if (file_exists(ABOUT_PROGRAMS_PATH . $AboutTemplateName)) { $A .= $About->fetch($AboutTemplateName); } // META //////////////////////////////////////////////// $MetaKeywords = ''; $metaRobots = '<meta name="robots" content="noindex,nofollow,noarchive" />'; // TEMPLATE VARS //////////////////////////////////////////////// $Page->set('PageTitle', $Title . BAR . 'Computer Language Benchmarks Game'); $Page->set('BannerTitle', BANNER_TITLE);
$I = $Data[0][DATA_ID]; } $Id = ''; if ($I > 1) { $Id = SEPARATOR . $I; } $timeUsed = 'Elapsed secs'; if (SITE_NAME == 'gp4' || SITE_NAME == 'debian') { $timeUsed = 'CPU secs'; } // HEADER //////////////////////////////////////////////// $mark = MarkTime(); $mark = $mark . ' ' . SITE_NAME; $TestName = $Tests[$T][TEST_NAME]; $LangName = $Langs[$L][LANG_FULL]; $Title = $TestName . ' ' . $LangName . IdName($I) . ' program'; $bannerUrl = CORE_SITE; $faqUrl = CORE_SITE . 'help.php'; // ABOUT //////////////////////////////////////////////// $About =& new Template(ABOUT_PROGRAMS_PATH); $AboutTemplateName = $T . SEPARATOR . $L . $Id . SEPARATOR . 'about.tpl.php'; if (!file_exists(ABOUT_PROGRAMS_PATH . $AboutTemplateName)) { $A = ''; } else { $A = $About->fetch($AboutTemplateName); } // META //////////////////////////////////////////////// $MetaKeywords = ''; $metaRobots = '<meta name="robots" content="noindex,nofollow,noarchive" />'; // TEMPLATE VARS //////////////////////////////////////////////// $Page->set('PageTitle', $Title . BAR . 'Computer Language Benchmarks Game');