11ty Gamification Blog

Scale Testing the Badge Engine

2025-08-20

Notes on how we stabilized the 1000-post scalability test for the Badge Engine.

Goals

Approach

  1. Run the scale test in a temporary copy of the site.
  2. Invoke Eleventy from the real workspace but point --config, --input, and --output to the temp copy.
  3. Generate posts that guarantee a 3-day streak ending today and distribute the rest across ~400 days.
  4. Assert:
    • Build succeeds.
    • Sparkles appears (either earned or fallback).
    • Current streak ≥ 3 days (verified via activity data builder).
    • Analyzer totals show ≥ 1000 posts.

Why isolate?

Running the build in-place polluted other tests that depend on the canonical content. Isolation keeps the rest of the suite deterministic and fast.

Tips