Skip to content

Improve the README and benchmark against Stencil, Mustache and Leaf - #16

Merged
mierau merged 4 commits into
mainfrom
claude/project-thread-bno0gc
Oct 12, 2026
Merged

mierau merged 4 commits into
mainfrom
claude/project-thread-bno0gc

Conversation

@mierau

@mierau mierau commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Before: the README was titled "StringCheese", its code samples were indented blocks with no syntax highlighting, it went straight into installation without showing what the library is for, and the Benchmarks section was one sentence with no numbers. The benchmarks package also failed to build on macOS.

After: the README is titled "String Cheese", every code block is fenced and marked swift, jinja (templates) or text (output), and it opens with a short description, a template, Swift and output example, a "Why String Cheese" list and a table of contents. The Benchmarks section shows measured times for String Cheese, Leaf, Mustache and Stencil on Linux and macOS, with how and where they were measured. String Cheese renders the comparison page 4 to 84 times faster than the others.

How: Benchmarks/Comparison is a new package that renders the same page (a heading and 100 people with escaping and a condition) with each engine, checks every engine's output against String Cheese's before timing, and prints a Markdown table. A new Benchmarks workflow runs it and the existing benchmarks on ubuntu-latest (Swift 6.2) and macos-15 for pull requests that touch the library or benchmarks, and can be started by hand. The README numbers come from this run. Benchmarks/Package.swift now declares macOS 13 so it builds on macOS.

@mierau mierau self-assigned this Oct 12, 2026
@mierau
mierau marked this pull request as ready for review October 12, 2026 19:44
@mierau
mierau merged commit be85b88 into main Oct 12, 2026
4 checks passed
@mierau
mierau deleted the claude/project-thread-bno0gc branch October 12, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant