Skip to content

adjust the benchmarks#248

Merged
bartveneman merged 3 commits into
mainfrom
benches
May 19, 2026
Merged

adjust the benchmarks#248
bartveneman merged 3 commits into
mainfrom
benches

Conversation

@bartveneman
Copy link
Copy Markdown
Member

quick mode:

── Table 1: Wallace CSS Parser ──────────────────────────────────────────

┌─────────┬─────────────┬───────────┬────────────────────┬─────────────────┬────────────────┬──────────────────────┐
│ (index) │ File        │ Size      │ Tokenize (ops/sec) │ Parse (ops/sec) │ Walk (ops/sec) │ Parse+Walk (ops/sec) │
├─────────┼─────────────┼───────────┼────────────────────┼─────────────────┼────────────────┼──────────────────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '23461'            │ '18082'         │ '89418'        │ '14965'              │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '304'              │ '228'           │ '1307'         │ '195'                │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '24'               │ '17'            │ '92'           │ '14'                 │
└─────────┴─────────────┴───────────┴────────────────────┴─────────────────┴────────────────┴──────────────────────┘

── Table 2: Parse+Walk Memory – Wallace ─────────────────────────────────

┌─────────┬─────────────┬───────────┬───────────┐
│ (index) │ File        │ Size      │ Wallace   │
├─────────┼─────────────┼───────────┼───────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '0.2 MB'  │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '13.2 MB' │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '94.6 MB' │
└─────────┴─────────────┴───────────┴───────────┘

full mode:


── Table 1: Wallace CSS Parser ──────────────────────────────────────────

┌─────────┬─────────────┬───────────┬────────────────────┬─────────────────┬────────────────┬──────────────────────┐
│ (index) │ File        │ Size      │ Tokenize (ops/sec) │ Parse (ops/sec) │ Walk (ops/sec) │ Parse+Walk (ops/sec) │
├─────────┼─────────────┼───────────┼────────────────────┼─────────────────┼────────────────┼──────────────────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '23278'            │ '18077'         │ '89661'        │ '14924'              │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '300'              │ '228'           │ '1297'         │ '194'                │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '24'               │ '17'            │ '92'           │ '14'                 │
└─────────┴─────────────┴───────────┴────────────────────┴─────────────────┴────────────────┴──────────────────────┘

── Table 2: Parse Speed – Wallace (baseline) vs CSSTree vs PostCSS ───────

┌─────────┬─────────────┬───────────┬───────────────────┬───────────────────┬───────────────────┬───────────────┬───────────────┐
│ (index) │ File        │ Size      │ Wallace (ops/sec) │ CSSTree (ops/sec) │ PostCSS (ops/sec) │ vs CSSTree    │ vs PostCSS    │
├─────────┼─────────────┼───────────┼───────────────────┼───────────────────┼───────────────────┼───────────────┼───────────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '18077'           │ '2725'            │ '13414'           │ '6.6x faster' │ '1.3x faster' │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '228'             │ '83'              │ '152'             │ '2.7x faster' │ '1.5x faster' │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '17'              │ '5'               │ '8'               │ '3.3x faster' │ '2.1x faster' │
└─────────┴─────────────┴───────────┴───────────────────┴───────────────────┴───────────────────┴───────────────┴───────────────┘

── Table 3: Parse+Walk Speed – Wallace (baseline) vs CSSTree vs PostCSS ──

┌─────────┬─────────────┬───────────┬───────────────────┬───────────────────┬───────────────────┬───────────────┬───────────────┐
│ (index) │ File        │ Size      │ Wallace (ops/sec) │ CSSTree (ops/sec) │ PostCSS (ops/sec) │ vs CSSTree    │ vs PostCSS    │
├─────────┼─────────────┼───────────┼───────────────────┼───────────────────┼───────────────────┼───────────────┼───────────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '14924'           │ '2456'            │ '12150'           │ '6.1x faster' │ '1.2x faster' │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '194'             │ '67'              │ '141'             │ '2.9x faster' │ '1.4x faster' │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '14'              │ '4'               │ '7'               │ '3.4x faster' │ '1.9x faster' │
└─────────┴─────────────┴───────────┴───────────────────┴───────────────────┴───────────────────┴───────────────┴───────────────┘

── Table 4: Parse+Walk Speed (fair) – Wallace no sub-parsing vs CSSTree no sub-parsing vs PostCSS ──

┌─────────┬─────────────┬───────────┬───────────────────┬───────────────────┬───────────────────┬───────────────┬───────────────┐
│ (index) │ File        │ Size      │ Wallace (ops/sec) │ CSSTree (ops/sec) │ PostCSS (ops/sec) │ vs CSSTree    │ vs PostCSS    │
├─────────┼─────────────┼───────────┼───────────────────┼───────────────────┼───────────────────┼───────────────┼───────────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '25579'           │ '2731'            │ '12150'           │ '9.4x faster' │ '2.1x faster' │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '341'             │ '88'              │ '141'             │ '3.9x faster' │ '2.4x faster' │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '28'              │ '8'               │ '7'               │ '3.7x faster' │ '3.8x faster' │
└─────────┴─────────────┴───────────┴───────────────────┴───────────────────┴───────────────────┴───────────────┴───────────────┘

── Table 5: Parse+Walk Memory – Wallace (baseline) vs CSSTree vs PostCSS ─

┌─────────┬─────────────┬───────────┬───────────┬────────────┬───────────┬─────────────┬─────────────┐
│ (index) │ File        │ Size      │ Wallace   │ CSSTree    │ PostCSS   │ vs CSSTree  │ vs PostCSS  │
├─────────┼─────────────┼───────────┼───────────┼────────────┼───────────┼─────────────┼─────────────┤
│ 0       │ 'Large'     │ '3 KB'    │ '0.2 MB'  │ '0.2 MB'   │ '0.3 MB'  │ '1.0x less' │ '1.5x less' │
│ 1       │ 'Bootstrap' │ '274 KB'  │ '13.2 MB' │ '10.6 MB'  │ '17.5 MB' │ '0.8x less' │ '1.3x less' │
│ 2       │ 'Tailwind'  │ '3557 KB' │ '94.5 MB' │ '120.9 MB' │ '99.7 MB' │ '1.3x less' │ '1.1x less' │
└─────────┴─────────────┴───────────┴───────────┴────────────┴───────────┴─────────────┴─────────────┘

@codecov-commenter
Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.14%. Comparing base (2f19177) to head (5191b3c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #248   +/-   ##
=======================================
  Coverage   93.14%   93.14%           
=======================================
  Files          17       17           
  Lines        3035     3035           
  Branches      845      845           
=======================================
  Hits         2827     2827           
  Misses        208      208           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bartveneman bartveneman merged commit 85bc48d into main May 19, 2026
5 checks passed
@bartveneman bartveneman deleted the benches branch May 19, 2026 20:07
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.

2 participants