diff --git a/src/components/results-table/index.tsx b/src/components/results-table/index.tsx index 12bb42c..55d73de 100644 --- a/src/components/results-table/index.tsx +++ b/src/components/results-table/index.tsx @@ -18,7 +18,8 @@ const classes = (...names: (string | false)[]) => * rules (results.js): a row per panel and a column per system, Vortex * first in Blue, the best figure in each row underlined, a figure 10× or more * behind it dotted, and how Vortex does against Parquet last. A phone shows - * only the verdicts: against Parquet, and against Lance. Its markup is + * only the verdicts, against Parquet and against Lance, under "Vortex" in + * place of "Benchmark". Its markup is * the same as the system's `renderResults`, and * tests/unit/results-table.test.tsx holds it there. A * row whose figures are not bench's names their source in its head's hover @@ -54,7 +55,12 @@ export function ResultsTable({
| Benchmark | ++ Benchmark + + | {systems.map((s) => ( --sections base,brand,chrome,site,blog,tables,focus --faces --vx-face --base --reads ..
- sha256 a6f0b79a7f5a1d42b0d3dcb2b5e7bfafca0a8b41eba5d01465c5d5c4cbe5c4ae */
+ sha256 63cc1276044b2919cc131b328dbfb69b558ba6b89283ca337ac44e33b43625a9 */
/* ------------------------------------------------------------------ base */
/* Every component sizes with border-box, so it draws the same under a site's reset or none. */
@@ -618,20 +618,21 @@ html:has(.vx-header) { scroll-padding-top: calc(var(--space-64) + var(--space-8)
.vx-results-table .is-far { color: var(--warn-ink); text-decoration: underline dotted 2px var(--warn-ink); text-underline-offset: 5px; }
.vx-results-table .is-far.is-ours { color: var(--accent-ink); }
.vx-results-table .is-verdict { padding-left: var(--space-24); color: var(--ink); }
-/* The verdict's head names Vortex only on a phone, where Vortex's column is gone. The rival's verdict shows only there too. */
-.vx-results-subject { display: none; color: var(--accent-ink); }
+/* On a phone, where Vortex's column is gone, the first head shows "Vortex" (`vx-results-lead`) in place of "Benchmark", so the row reads "Vortex · Scan · 7.5× faster vs Parquet". Screen readers keep "Benchmark" and "Vortex vs Parquet" (`vx-results-subject`). The rival's verdict shows only there too. */
+.vx-results-subject, .vx-results-lead { display: none; }
+.vx-results-lead { color: var(--accent-ink); }
.vx-results-table .is-rival { display: none; }
@media (max-width: 760px) {
.vx-results { padding: var(--space-16); }
- /* A phone shows each benchmark and its verdicts alone: against Parquet and, with a rival, against it. Vortex's figure would repeat the verdict. With no figure left to mark, the key goes too. The verdict heads wrap ("Vortex vs / Parquet"). */
+ /* A phone shows each benchmark and its verdicts alone: against Parquet and, with a rival, against it. Vortex's figure would repeat the verdict. With no figure left to mark, the key goes too. The heads read "Vortex", "vs Parquet", "vs Lance", each on one line. */
.vx-results-table :is(th, td):not(:first-child, .is-verdict) { display: none; }
.vx-results-table .is-rival { display: table-cell; }
.vx-results-table .is-verdict { padding-left: var(--space-16); }
- .vx-results-table thead .is-verdict { white-space: normal; }
- .vx-results-subject { display: inline; }
+ .vx-results-lead { display: inline; }
+ .vx-results-subject, .vx-results-label { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vx-results-foot { display: none; }
}
-/* Small phones: 12px of padding, 12px between the columns, and headings that wrap. */
+/* Small phones: 12px of padding, 12px between the columns, and row heads that wrap ("Random / access"). */
@media (max-width: 400px) {
.vx-results { padding: var(--space-12); }
.vx-results-table :is(th, td):not(:first-child) { padding-left: var(--space-12); }
diff --git a/src/vendor/vortex-design/SHA256SUMS b/src/vendor/vortex-design/SHA256SUMS
index 349ec09..874316a 100644
--- a/src/vendor/vortex-design/SHA256SUMS
+++ b/src/vendor/vortex-design/SHA256SUMS
@@ -2,8 +2,8 @@ b915c52f8505a5f514cad929e25b4639239bfbfa9d2091fd77369c084e7ecc6d ascii-core.d.t
c7462c84b8ef8859ac25902edf8c565dcd161895ff9e0034403e1599ebd9659a ascii-mark.d.ts
a40a25417fd2e2821aab505815e4ddf50ac47e0af819117eda7d4fc737b900e4 ascii-core.js
02c4efe2952106703240201678629e831e99f1e6429346c2f837ef26a8e00716 ascii-mark.js
-1463ef3d28dbadb73e35ae5743edd7927b724c9d83117dc9758aed6def97bb63 results.d.ts
-25d2ecf667cd7cb0ed349d6f2b9fa80801185a27e9e6e74c3834ef335e0117ec results.js
+24a2ec6a9eacb31bd17524d315214ab4df7c361352a13ad198627499516de987 results.d.ts
+0b2c9965891c3fd1a7562f9d0d7f9245ea0639d4c7b7a0c249c870b2a7da99d3 results.js
b59c1b277849e9c6adcd1e84468fea3b59945be1b1d9fe6a2f386bc0882b7fc2 callout.d.ts
dacdc197af6ae4fe546907d9578e36f32343d9ff4112c641a00428c6c28fed2f callout.js
1f540989def6dfe2f98fcd537de2ce3cfed2baf07f458287ad15ab53462a165d code-block.d.ts
diff --git a/src/vendor/vortex-design/results.d.ts b/src/vendor/vortex-design/results.d.ts
index 214e657..e4d6a65 100644
--- a/src/vendor/vortex-design/results.d.ts
+++ b/src/vendor/vortex-design/results.d.ts
@@ -150,7 +150,7 @@ export type ResultsRow = {
name: string;
cells: ResultsCell[];
verdict: string;
- /** With the `rival` option, how Vortex does against that system, worded as `verdict`: "14× faster", "N/A", or "—" when the panel does not show it. Otherwise null. */
+ /** With the `rival` option, how Vortex does against that system, worded as `verdict`: "14× faster", or "—" when that system cannot run the benchmark or the panel does not show it. Otherwise null. */
rivalVerdict: string | null;
/** Where the figures come from when they are not bench's, as the row head's hover title and screen-reader text. */
source: PanelSource | null;
diff --git a/src/vendor/vortex-design/results.js b/src/vendor/vortex-design/results.js
index 6bd3406..0426705 100644
--- a/src/vendor/vortex-design/results.js
+++ b/src/vendor/vortex-design/results.js
@@ -216,13 +216,13 @@ export function resultsSystems(panels) {
/**
* How Vortex does against `rival` in one panel, worded as the verdict against Parquet is ("14× faster",
- * "48% smaller"): "N/A" when the rival cannot run the benchmark, "Lance not measured" when it has no
- * result, and "—" when the panel does not show it.
+ * "48% smaller"): "—" when the rival cannot run the benchmark or the panel does not show it, and
+ * "Lance not measured" when it could run but has no result. The figure's own cell still says "N/A".
*/
function rivalVerdict(panel, rival) {
const r = find(pickSystems(panel.rows, panel.systems), String(rival).toLowerCase());
if (!r) return "—";
- if (r.unavailable) return "N/A";
+ if (r.unavailable) return "—";
return panelVerdict(panel.kind, versus(panel.rows, panel.better, rival));
}
@@ -274,7 +274,7 @@ export function renderResults(panels, { read, icon = "", rival } = {}) {
const cls = (...c) => (c.filter(Boolean).length ? ` class="${c.filter(Boolean).join(" ")}"` : "");
const when = read ? `read ${esc(read)}` : "";
const head = ` File format benchmarksbench.vortex.dev${icon}${when} `; - const cols = ` | |
|---|---|---|---|
| Benchmark | ${systems.map((s) => `${esc(s)} | `).join("")}Vortex vs Parquet | ${rival ? `Vortex vs ${esc(rival)} | ` : ""}
| Benchmark | ${systems.map((s) => `${esc(s)} | `).join("")}Vortex vs Parquet | ${rival ? `Vortex vs ${esc(rival)} | ` : ""}Vortex <\/span>vs Lance<\/th>/ ); assert.equal(html.match(/ | /g)?.length, 7); + assert.match( + html, + / | Benchmark<\/span> |