Skip to content

test: add large-bibliography performance benchmark suite#35

Merged
dknauss merged 2 commits into
mainfrom
salvage/large-bibliography-benchmark
Jun 17, 2026
Merged

test: add large-bibliography performance benchmark suite#35
dknauss merged 2 commits into
mainfrom
salvage/large-bibliography-benchmark

Conversation

@dknauss

@dknauss dknauss commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Salvages the large-bibliography performance benchmark suite that was stranded on the stale local branch experiment/large-bibliography-benchmark (41 commits behind main).

Contents

  • scripts/benchmark-formatter.php — standalone PHP citeproc latency benchmark (no WordPress hooks; exits early if the autoloader/citeproc-php is absent)
  • scripts/generate-benchmark-fixtures.js — deterministic CSL-JSON fixture generator (seeded LCG, interleaved types)
  • src/benchmarks/fixtures/csl-200.json — 200-entry CSL-JSON fixture
  • src/benchmarks/performance-benchmark.test.js — extended with large-size orchestration cases (style-switch and add/delete mutation latency over 200 entries), consuming the fixture above
  • docs/planning/large-bibliography-benchmark-results.md — results memo

The benchmark describe blocks are self-skipping (consistent with the existing perf file), so they do not run in the normal Jest pass. Dev tooling only — no runtime/plugin code is touched.

Notes

JS files were reformatted to satisfy the current prettier config (the originals predated it). Two scoped eslint-disable directives were added to the generator: no-bitwise (LCG PRNG) and no-console (CLI output). lint:js, lint:css, lint:php, the Jest suite, and build all pass.

🤖 Generated with Claude Code

dknauss and others added 2 commits June 17, 2026 00:43
Recovered from stale local branch experiment/large-bibliography-benchmark
(tip b20cbe9, 41 commits behind main). Adds the standalone PHP formatter
latency benchmark, the deterministic CSL-JSON fixture generator, the
200-entry fixture, and the results memo. Dev tooling only; no runtime code.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds large-size orchestration benchmark cases (style switch and mutation
latency over a 200-entry bibliography) to the existing perf test, using
the csl-200.json fixture. Self-skipping, consistent with the existing
benchmark blocks. Salvaged from experiment/large-bibliography-benchmark.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.47%. Comparing base (0639cd8) to head (d8ccf4f).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #35   +/-   ##
=======================================
  Coverage   81.47%   81.47%           
=======================================
  Files          40       40           
  Lines        2613     2613           
  Branches      464      464           
=======================================
  Hits         2129     2129           
  Misses        126      126           
  Partials      358      358           

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dknauss dknauss merged commit ef4ccd7 into main Jun 17, 2026
20 of 21 checks passed
@dknauss dknauss deleted the salvage/large-bibliography-benchmark branch June 17, 2026 07:12
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