Skip to content

tools: add the local HealthSamurai benchmark harness and its HFS vs WSO2 results - #2613

Open
eterceros wants to merge 6 commits into
mainfrom
feat/2612-move-local-healthsamurai-benchmark
Open

eterceros wants to merge 6 commits into
mainfrom
feat/2612-move-local-healthsamurai-benchmark

Conversation

@eterceros

Copy link
Copy Markdown
Contributor

Summary

Moves the local harness used to run HFS against the upstream HealthSamurai FHIR Server Performance Benchmark (next to WSO2) into tools/healthsamurai-bench/, together with the k6 logs of the valid runs, so the comparison can be repeated and audited instead of living in one local clone.

Closes #2612.

What is added

  • hfs/Dockerfile (with a FEATURES build arg) and its own Dockerfile.dockerignore.
  • Compose overrides: docker-compose.hfs.yaml (HFS on Postgres), docker-compose.hfses.yaml (Postgres + Elasticsearch inside the 8 CPU / 24 GB budget) and docker-compose.hfses-wide.yaml (Elasticsearch on its own 8 CPU / 30 GB).
  • upstream-e6a4941.patch: the runner.sh and create-database.sql changes needed on upstream commit e6a4941.
  • scripts/: run-matrix.sh, run-es.sh (round drivers), report.py and analyze.py (medians, spread, ratios).
  • results/: 64 k6 logs and the per-run metrics as JSON. A local .gitignore re-includes *.log under results/, which the repository otherwise ignores.
  • README.md: how to rebuild the images, rerun, the conditions of the recorded run, the results and the caveats.

Nothing in this PR touches crates, workflows or existing files, and nothing is pushed or proposed to HealthSamurai.

Verification

  • git apply --check of the patch against upstream e6a4941: applies.
  • bash -n on both round scripts: passes.
  • scripts/analyze.py and scripts/report.py run against the shipped logs and give the medians recorded in the README.
  • Not verified: a full rerun of the rounds from this copy.

Measured (medians of 3 rounds, HFS commit c52ff36)

Suite HFS Postgres HFS + ES, shared budget HFS + ES, own budget WSO2
Prewarm, req/s 2033 81 173 1826
CRUD, req/s 2567 267 964 2793
Import, seconds (lower is better) 736 657 496 833
Search, req/s 2646 238 1094 2273

Host: Docker Desktop on WSL2, 44 GiB, 20 vCPU, so ratios are comparable and absolute values are not.

🤖 Generated with Claude Code

eterceros and others added 6 commits November 18, 2026 22:13
…SO2 results (#2612)

Move the harness out of a local clone of HealthSamurai/fhir-server-performance-benchmark
into tools/healthsamurai-bench/ so the HFS vs WSO2 comparison can be repeated and audited:
Dockerfile with a FEATURES build arg, compose overrides for HFS on Postgres and for
Postgres + Elasticsearch in two resource budgets, the upstream runner.sh and
create-database.sql changes as a patch against e6a4941, the round and analysis
scripts, and the k6 logs of the valid runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@eterceros
eterceros marked this pull request as ready for review November 25, 2026 22:59
@eterceros
eterceros requested a review from smunini November 25, 2026 22:59

This branch has not been deployed

No deployments
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.

Move the local HealthSamurai benchmark harness and its HFS vs WSO2 results into the repo

1 participant