Measured 2026-11-29 on a Mac Studio (Apple M3 Ultra, 96GB), macOS 15.7.4. One prompt, three runs per model, one request at a time.
The four models built the same single-file Arabic documentation page for a fictional NLT API: RTL, five sections, search, dark mode, nav, tables, code blocks, responsive at 390px and 1440px, no external assets.
| Model | Runtime | Median wall | Output tokens | Functional checks | Inline bidi |
|---|---|---|---|---|---|
| Claude Haiku 5.5 | Anthropic Messages API | 18.1s | 4,573 | 18/18 ×3 | 4/4 |
| Gemma 4 31B | Ollama 0.40.16 | 46.8s | 2,874 | 18/18 ×3 | 0/3 |
| Qwen3.8 27B | Ollama 0.40.16 | 2:27 | 12,919 | 17/18, 18/18, 18/18 | 0/6 |
| Inkling 2 Mini | Ollama 0.40.18 | 2:34 | 6,739 | 18/18 ×3 | 0/4 |
215 of 216 functional checks passed. The only miss is Qwen run 1, which overflowed a 390px viewport (451px). Runs 2 and 3 passed. The inline-bidi audit is separate from the 18 checks; it is explained below.
stop or end_turn. The hard part was not getting Arabic on the screen.All four pages set <html lang="ar" dir="rtl">. All four made their block code
LTR. The difference is inline code inside Arabic prose and table cells.
In an RTL paragraph, the string /analyze can render as analyze/ because the
slash has no strong direction and the inline code inherits the paragraph
direction. The fix is one rule:
code, .path {
direction: ltr;
unicode-bidi: isolate;
}
The audit finds every <code> whose text is a single path such as /analyze,
then compares the x-position of the slash and the next character. If the slash
is to the right of the next character, the visual order is wrong.
direction:ltr and unicode-bidi:isolate on
inline code.This is a targeted bidi read, not a full RTL audit. It was added after looking at the four pages; it is reported separately from the pre-registered 18 checks.
| Item | Value |
|---|---|
| Prompt | prompt.md |
| Runs | 3 per model, 12 pages total |
| Decoding | temperature 0, 24,576 output cap, 32,768 context |
| Local thinking | off for all three local models |
| Claude thinking | disabled |
| Local state | warm; cold load was 3.9 to 4.3 s and is excluded from the timed runs |
| Selection | run 1 is the published representative; all runs are in the pack |
Models:
| Model | Local ID | Runtime |
|---|---|---|
| Qwen3.8 27B | qwen3.8:27b-mlx |
Ollama 0.40.16, NVFP4 |
| Gemma 4 31B | gemma4:31b-mlx |
Ollama 0.40.16, NVFP4 |
| Inkling 2 Mini | inkling-local-chat |
Ollama 0.40.18, isolated store, renderer inkling2 |
| Claude Haiku 5.5 | claude-haiku-5-5 |
Anthropic Messages API |
The 18 checks, per page:
doctypelang="ar"dir="rtl"#overview, #quickstart, #auth, #endpoints, #errorszzzz shows لا توجد نتائج and hides all five sectionscurl and AuthorizationThe bidi audit is check 19 in spirit, but it is not one of the 18.
api.nlt.example endpoint is never called. The pages are
static.export ANTHROPIC_API_KEY=...
python3 run_bakeoff.py
python3 score_all.py
node bidi_audit.cjs
The local models must exist in Ollama. run_bakeoff.py reads the Anthropic key
from the environment or NLT_ENV_FILE. score_all.py expects Playwright and
NODE_PATH pointing at a node_modules with it. The exact prompt is
prompt.md.
index.html — browsable scoreboard.method.html — readable HTML version of this file.prompt.md — the exact prompt.<model>/index.html — published run 1, sandboxed with CSP.pages/ — all 12 raw extracted pages.results/runs.jsonl — every run with raw text, timings and token counts.results/raw/ — raw model responses.scores/ — per-run checks, aggregates and the bidi audit.screenshots/ — desktop, mobile, dark and bidi evidence.scripts/ — harness, Playwright suite and audit.terminal/summary.cast — real asciinema capture.arabic-rtl-docs-bakeoff-pack.zip — this directory.The Wikipedia-derived text and its translations are CC BY-SA 4.0. FLORES-200 is CC BY-SA 4.0. COMET-22 is Apache 2.0; the COMET-Kiwi int8 build is CC BY-NC-SA 4.0. The pack does not contain the paid API key.