Skip to content

Add Yoga benchmark comparisons - #33

Merged
hyfdev merged 1 commit into
mainfrom
agent/yoga-benchmark
Aug 16, 2026
Merged

hyfdev merged 1 commit into
mainfrom
agent/yoga-benchmark

Conversation

@hyfdev

@hyfdev hyfdev commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • extend the benchmark runner from one hard-coded target pair to independent Taffy API and Yoga API comparison groups
  • add modeled chat, 1,000-leaf wide-tree, and 511-node deep-tree transactions for @taffyjs/yoga, yoga-layout@3.2.1, and @taffyjs/yoga-wasm
  • render every comparison group on the benchmark page with a group-local baseline and no cross-API ranking

Why

The Node and Wasm benchmark established the shared end-to-end measurement pipeline. This change reuses that pipeline for the shipped Yoga-compatible packages so native Taffy Yoga, upstream Yoga, and Taffy Yoga Wasm can be compared through the same public Yoga API transactions.

Validation

  • ran all three Yoga scenarios across all three targets with equal output checksums
  • ran vp run check
  • ran vp run check:wasm with an isolated temporary directory
  • built the website against both the retained Taffy-only dataset and a Yoga-only local dataset
  • completed a bounded adversarial review with no blocking findings

Published results

This PR intentionally does not replace benchmarks/results/published.json. The retained results were produced on an Apple M3 Pro, while this implementation was validated on Linux. Run vp run benchmark:update-website on the benchmark host before publishing the Yoga numbers.

@hyfdev
hyfdev marked this pull request as ready for review August 16, 2026 14:44
Copilot AI lite review requested due to automatic review settings August 16, 2026 14:44
@hyfdev
hyfdev merged commit e52e642 into main Aug 16, 2026
0 of 6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The job was not started because recent GitHub Actions payments have failed or your spending limit needs to be increased.

hyfdev added a commit that referenced this pull request Aug 16, 2026
Add retained Node, WebAssembly, and Yoga benchmarks together with package design guidance and website presentation.

Refs: #23, #31, #32, #33
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