Skip to content

Commit

Permalink
Remove JIT from test262 website
Browse files Browse the repository at this point in the history
  • Loading branch information
trflynn89 authored and awesomekling committed Feb 19, 2024
1 parent 1dc2cd5 commit 2af17a6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 48 deletions.
19 changes: 0 additions & 19 deletions test262/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,6 @@ <h2>test262</h2>
<canvas id="chart-test262"></canvas>
</div>
</section>
<section>
<h2>test262 - JIT</h2>
<p id="summary-test262-jit">Loading...</p>
<div class="chart-wrapper">
<canvas id="chart-test262-jit"></canvas>
</div>
</section>
<section>
<h2>test262 parser tests</h2>
<p id="summary-test262-parser-tests">Loading...</p>
Expand All @@ -167,24 +160,12 @@ <h2>test262 performance</h2>
<canvas id="chart-test262-performance"></canvas>
</div>
</section>
<section>
<h2>test262 performance - JIT</h2>
<div class="chart-wrapper">
<canvas id="chart-test262-jit-performance"></canvas>
</div>
</section>
<section>
<h2>test262 performance per test</h2>
<div class="chart-wrapper">
<canvas id="chart-test262-performance-per-test"></canvas>
</div>
</section>
<section>
<h2>test262 performance per test - JIT</h2>
<div class="chart-wrapper">
<canvas id="chart-test262-jit-performance-per-test"></canvas>
</div>
</section>
</main>
<footer>
Made by
Expand Down
38 changes: 13 additions & 25 deletions test262/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
const charts = {
...Object.fromEntries(
[].concat(
...["test262", "test262-jit"].map((name) => [
...["test262"].map((name) => [
[
name,
{
Expand Down Expand Up @@ -147,10 +147,10 @@
continue;
}

for (const jitSuffix of ["", "-jit"]) {
for (const suffix of [""]) {
// chart-test262-performance
const performanceTests = entry.tests[`test262${jitSuffix}`];
const performanceChart = charts[`test262${jitSuffix}-performance`];
const performanceTests = entry.tests[`test262${suffix}`];
const performanceChart = charts[`test262${suffix}-performance`];
const performanceResults = performanceTests?.results;
if (performanceResults) {
performanceChart.metadata.push({
Expand All @@ -167,9 +167,9 @@
}

// chart-test262-performance-per-test
const performancePerTestTests = entry.tests[`test262${jitSuffix}`];
const performancePerTestTests = entry.tests[`test262${suffix}`];
const performancePerTestChart =
charts[`test262${jitSuffix}-performance-per-test`];
charts[`test262${suffix}-performance-per-test`];
const performancePerTestResults = performancePerTestTests?.results;
if (performancePerTestResults) {
performancePerTestChart.metadata.push({
Expand Down Expand Up @@ -394,21 +394,19 @@ test262@${test262Version}, test262-parser-tests@${test262ParserTestsVersion}`;
document.getElementById("chart-test262-parser-tests"),
charts["test262-parser-tests"]
);
for (const jitSuffix of ["", "-jit"]) {
for (const suffix of [""]) {
initializeChart(
document.getElementById(`chart-test262${jitSuffix}`),
charts[`test262${jitSuffix}`]
document.getElementById(`chart-test262${suffix}`),
charts[`test262${suffix}`]
);
initializeChart(
document.getElementById(`chart-test262${jitSuffix}-performance`),
charts[`test262${jitSuffix}-performance`],
document.getElementById(`chart-test262${suffix}-performance`),
charts[`test262${suffix}-performance`],
{ yAxisTitle: TestResultLabels[TestResult.DURATION] }
);
initializeChart(
document.getElementById(
`chart-test262${jitSuffix}-performance-per-test`
),
charts[`test262${jitSuffix}-performance-per-test`],
document.getElementById(`chart-test262${suffix}-performance-per-test`),
charts[`test262${suffix}-performance-per-test`],
{ yAxisTitle: TestResultLabels[TestResult.DURATION] }
);
}
Expand All @@ -424,16 +422,6 @@ test262@${test262Version}, test262-parser-tests@${test262ParserTestsVersion}`;
);
}

if ("test262-jit" in last.tests) {
initializeSummary(
document.getElementById("summary-test262-jit"),
last.run_timestamp,
last.versions.serenity,
last.tests["test262-jit"].duration,
last.tests["test262-jit"].results
);
}

if ("test262-parser-tests" in last.tests) {
initializeSummary(
document.getElementById("summary-test262-parser-tests"),
Expand Down
5 changes: 1 addition & 4 deletions test262/per-file/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ <h2>Per-file results</h2>
<script>
window.config = {
initialPathInTree: "test",
loadPathsAndModes: [
["test262/per-file-master.json", "Interpreter"],
["test262/per-file-master-jit.json", "JIT"],
],
loadPathsAndModes: [["test262/per-file-master.json", "Interpreter"]],
generateGitHubURLFromTestPath(filepath) {
return `https://github.com/tc39/test262/tree/main/${filepath}`;
},
Expand Down

0 comments on commit 2af17a6

Please sign in to comment.