Skip to content

Add benchmark suite and automated performance reporting

Choose a tag to compare

@Zhang-JiahangH Zhang-JiahangH released this 07 Apr 05:36
· 31 commits to main since this release
09671c1

v0.1.3

Release title

Add benchmark suite and automated performance reporting

Release notes

This release introduces a runnable benchmark suite to evaluate react-virtualized-diff against several popular diff viewer libraries across large file sizes.

What's new

  • Added a benchmark app under apps/benchmark
  • Added comparisons against:
    • react-virtualized-diff
    • react-diff-viewer
    • react-diff-viewer-continued
    • react-diff-view
  • Added benchmark scenarios for 1k, 10k, 50k, and 100k lines
  • Added collected metrics for:
    • FPS
    • initial render time
    • memory usage in Chromium
  • Added a root benchmark command: pnpm benchmark
  • Added an automated benchmark runner: scripts/run-benchmark.mjs

Improvements

  • Automatically installs Playwright Chromium on first run if browser binaries are missing
  • Handles per-case timeouts without failing the entire benchmark run
  • Properly shuts down the benchmark dev server after execution to avoid noisy exit errors

Outputs

Benchmark results are generated to:

  • benchmark-results/results.json
  • benchmark-results/results.md