Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
push:
branches: ["main"]

# Refresh nightly so newly published competition runs appear automatically
schedule:
- cron: "0 6 * * *"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -104,6 +108,7 @@ jobs:
- name: Fetch latest competition data and build Observable leaderboard
run: npm run build
env:
GITHUB_TOKEN: ${{ github.token }}
OBSERVABLE_TELEMETRY_DISABLE: '1'
- name: Build with Jekyll
# Outputs to the './_site' directory by default
Expand Down
2 changes: 1 addition & 1 deletion _pages/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The suite adapts real applications to a portable array-programming style. This c
{% assign has_standard_dataset = false %}
{% for generator in benchmark.generators %}
{% for dataset in generator.datasets %}
{% if dataset.tags contains "standard" %}
{% if dataset.tags contains "suite-standard" %}
{% assign has_standard_dataset = true %}
{% endif %}
{% endfor %}
Expand Down
29 changes: 0 additions & 29 deletions _posts/2026-08-31-welcome-to-jekyll.md

This file was deleted.

37 changes: 30 additions & 7 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,45 @@
@import "minimal-mistakes/skins/default";
@import "minimal-mistakes";

// Keep page content near the viewport edge instead of centering it in the
// theme's 1280px content shell.
// Use a wide, centered content shell so the masthead (SAPS logo on the left,
// nav links on the right) and wide pages align flush at every viewport width.
#main,
.masthead__inner-wrap {
max-width: 1480px;
margin-inline: auto;
box-sizing: border-box;
}

#main {
max-width: none;
margin-inline: 0;
padding-inline: 2rem;
}

// Minimal Mistakes' `classes: wide` drops only the right padding while leaving
// `.page` floated right at `calc(100% - 300px)` for a left sidebar that these
// pages don't have; let wide pages fill `#main` cleanly.
.wide .page {
float: none;
width: 100%;
margin-inline: 0;
padding-inline: 0;

.page__inner-wrap {
float: none;
}
}

.masthead__inner-wrap {
padding: 0.35rem 2rem;
}

@media (max-width: 42rem) {
#main {
padding-inline: 1.1rem;
}
}

.masthead__inner-wrap {
padding: 0.35rem 0.75rem;
.masthead__inner-wrap {
padding: 0.35rem 1.1rem;
}
}

.greedy-nav .site-title.saps-brand {
Expand Down
114 changes: 114 additions & 0 deletions docs/components/outcomes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// Stacked outcome / failure analysis matching results/error_analysis.py from the SAPS paper.
import {
NOT_FAILURES,
OUTCOME_COLORS,
OUTCOME_ORDER,
orderFrameworks,
outcomeLabel
} from "./palette.js";

/**
* Aggregate per-framework outcome shares over the problems selected by `okMask`.
* When `includeSuccess` is false, non-failure segments ("ok", "skipped") are
* omitted while denominators remain total results per framework, matching
* `failures_by_framework_stacked.pdf`.
*/
export function summarizeOutcomes(
outcomes,
frameworkNames,
okMask = null,
{includeSuccess = true} = {}
) {
const allowedFrameworks = Array.isArray(frameworkNames) ? new Set(frameworkNames) : null;
const countsByFramework = new Map();
const totalsByFramework = new Map();
const observedOutcomes = new Set();

for (const row of outcomes) {
const problem = Number(row.problem);
if (okMask && !okMask[problem]) continue;
const fw = row.framework;
if (allowedFrameworks && !allowedFrameworks.has(fw)) continue;
const cls = row.outcome;
if (!countsByFramework.has(fw)) {
countsByFramework.set(fw, new Map());
totalsByFramework.set(fw, 0);
}
const counts = countsByFramework.get(fw);
counts.set(cls, (counts.get(cls) ?? 0) + 1);
totalsByFramework.set(fw, totalsByFramework.get(fw) + 1);
observedOutcomes.add(cls);
}

const frameworks = orderFrameworks(
allowedFrameworks !== null ? frameworkNames : [...countsByFramework.keys()]
);

const present = [...observedOutcomes].filter(
(name) => includeSuccess || !NOT_FAILURES.has(name)
);
const outcomeList = [
...OUTCOME_ORDER.filter((name) => present.includes(name)),
...present.filter((name) => !OUTCOME_ORDER.includes(name)).sort()
];

const segments = [];
for (const fw of frameworks) {
const counts = countsByFramework.get(fw) ?? new Map();
const total = totalsByFramework.get(fw) ?? 0;
let y0 = 0;
for (const outcome of outcomeList) {
const count = counts.get(outcome) ?? 0;
const fraction = total > 0 ? count / total : 0;
const y1 = y0 + fraction;
if (count > 0) {
segments.push({
framework: fw,
outcome,
label: outcomeLabel(outcome),
count,
total,
fraction,
pct: 100 * fraction,
y0,
y1,
color: OUTCOME_COLORS[outcome] ?? "#B0B0B0",
opacity: outcome === "ok" ? 1.0 : 0.48
});
}
y0 = y1;
}
}

return {
frameworks,
outcomes: outcomeList.map((outcome) => ({
outcome,
label: outcomeLabel(outcome),
color: OUTCOME_COLORS[outcome] ?? "#B0B0B0",
opacity: outcome === "ok" ? 1.0 : 0.48
})),
segments,
totalMeasurements: [...totalsByFramework.values()].reduce((a, b) => a + b, 0)
};
}

/**
* Render an inline legend matching the exact outcome order and opacity used
* in the stacked bar chart.
*/
export function renderOutcomeLegend(outcomes) {
const legend = document.createElement("div");
legend.className = "saps-outcome-legend";
for (const item of outcomes) {
const entry = document.createElement("span");
entry.className = "saps-outcome-legend__item";
const swatch = document.createElement("span");
swatch.className = "saps-outcome-legend__swatch";
swatch.style.backgroundColor = item.color;
swatch.style.opacity = String(item.opacity);
entry.append(swatch, document.createTextNode(item.label));
legend.append(entry);
}
return legend;
}
109 changes: 109 additions & 0 deletions docs/components/palette.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// Shared framework ordering, device classes, and colorblind-safe palettes
// matching the SAPS paper (performance_profile.py and error_analysis.py).

export const FRAMEWORK_ORDER = [
"numpy",
"scipy",
"sparse",
"pytorch",
"pytorch-gpu",
"smart",
"cupy",
"finch",
"galley",
"graphblas",
"scorch"
];

export const GPU_FRAMEWORKS = new Set(["cupy", "pytorch-gpu"]);

// Paul Tol's colorblind-safe "muted" palette, plus black and grey.
export const FRAMEWORK_COLORS = {
numpy: "#88CCEE",
scipy: "#DDCC77",
sparse: "#117733",
pytorch: "#CC6677",
"pytorch-gpu": "#332288",
smart: "#AA4499",
cupy: "#882255",
finch: "#44AA99",
galley: "#999933",
graphblas: "#000000",
scorch: "#BBBBBB"
};

const FALLBACK_COLORS = ["#777777", "#555555", "#333333"];

export function orderFrameworks(names) {
const unique = [...new Set(names)];
const ordered = FRAMEWORK_ORDER.filter((name) => unique.includes(name));
const extra = unique.filter((name) => !FRAMEWORK_ORDER.includes(name)).sort();
return [...ordered, ...extra];
}

export function frameworkColors(names) {
let fallbackIndex = 0;
return Object.fromEntries(
names.map((name) => [
name,
FRAMEWORK_COLORS[name] ?? FALLBACK_COLORS[fallbackIndex++] ?? "#000000"
])
);
}

export function deviceClasses(names) {
const ordered = orderFrameworks(names);
const sections = [
{device: "CPU", frameworks: ordered.filter((name) => !GPU_FRAMEWORKS.has(name))},
{device: "GPU", frameworks: ordered.filter((name) => GPU_FRAMEWORKS.has(name))}
];
return sections.filter((section) => section.frameworks.length > 0);
}

// Stack order for outcome / failure analysis (error_analysis.py).
export const OUTCOME_ORDER = [
"ok",
"not_implemented",
"attribute_error",
"type_error",
"value_error",
"runtime_error",
"assertion",
"import_error",
"killed_sigkill",
"killed_sigterm",
"oom",
"timeout",
"skipped",
"nonfinite",
"empty_stderr",
"log_only_then_fail",
"other"
];

// Okabe-Ito colorblind-safe palette, extended with Paul Tol's muted colors.
export const OUTCOME_COLORS = {
ok: "#009E73",
not_implemented: "#D55E00",
attribute_error: "#CC79A7",
type_error: "#E69F00",
value_error: "#882255",
runtime_error: "#332288",
killed_sigkill: "#CC6677",
killed_sigterm: "#AA4499",
oom: "#F0E442",
timeout: "#0072B2",
assertion: "#000000",
import_error: "#88CCEE",
skipped: "#DDDDDD",
nonfinite: "#777777",
empty_stderr: "#DDCC77",
log_only_then_fail: "#56B4E9",
other: "#BBBBBB"
};

export const NOT_FAILURES = new Set(["ok", "skipped"]);

export function outcomeLabel(name) {
return name === "ok" ? "success" : name.replaceAll("_", " ");
}
3 changes: 2 additions & 1 deletion docs/components/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export function buildProfile(results, benchmarks, frameworkNames = results.map((
}
});
for (const points of Object.values(series)) points.sort((a, b) => a[1] - b[1]);
return {problems, series, xMax};
const solvable = values.map((byFramework) => byFramework.size > 0);
return {problems, series, xMax, solvable};
}

function median(values) {
Expand Down
Loading