# ============================================================================
# Apache Juneau — test performance baselines.
#
# Read by the perf guard in scripts/test.py (run_perf_guard), which runs after `mvn test` in
# `scripts/test.py --full` and in scripts/push.py.  Warn-only unless --enforce-perf.
#
# FORMAT — one entry per line:   <key> = <seconds>     # optional trailing comment
#
#   suite            The real wall clock of the whole `mvn test -T1C` phase.  Breaches above
#                    suite × (1 + tolerance).
#
#   [modules]        <module path> = <seconds>: a reactor module's wall clock, from the Reactor
#                    Summary Maven prints (path relative to the repo root, e.g.
#                    "juneau-rest/juneau-rest-mock").  A module breaches only when it is over
#                    baseline × (1 + tolerance) AND more than min-seconds over its baseline.  A
#                    module with no entry warns and never fails.
#
#   [observability]  Read by scripts/microbench.py, not by the perf guard.
#
# Tolerance: JUNEAU_CI_PERF_THRESHOLD (default 0.20).  Min seconds: JUNEAU_CI_PERF_MIN_SECONDS (default 3).
#
# To re-baseline once a few test.py runs have recorded module timings:
#     python3 scripts/test.py --rebaseline [--window 20] [--min-runs 5]
# It reads this repo's test.py run history (the passing `tests` records in
# ~/.cache/juneau-terminal/history/<repo>-<sha8>/test.jsonl, shared by every branch and worktree) that have
# the newest record's command signature (so --no-container and wrapper runs don't skew it), takes
# each key's median over its last 20 passing runs (dropping runs over 3× that median), rounds up to
# 0.1s, rewrites the suite line and the [modules] section, and prints what changed.  A key with
# fewer than 5 runs keeps its value; a command shape with fewer than 5 runs prints "no baseline for this
# command shape" and rewrites nothing.  With JUNEAU_TERMINAL_HISTORY=0 there is no history and nothing is
# rewritten.  Review the diff; nothing is committed.
#
# --rebaseline rewrites the [modules] section wholesale: keep comments above the [modules] line,
# and keep the suite line above it too.
#
# Consumers: scripts/test.py (read_baselines, run_perf_guard, rebaseline) and
#            scripts/microbench.py ([observability]).
# ============================================================================

# 2026-10-19: set by --rebaseline from the median of the recent test.py runs.
suite = 185.6

[modules]
juneau-bean = 0.1
juneau-bean/juneau-bean-atom = 5.9
juneau-bean/juneau-bean-common = 7.2
juneau-bean/juneau-bean-hal = 5.7
juneau-bean/juneau-bean-html5 = 11
juneau-bean/juneau-bean-jsonapi = 6.1
juneau-bean/juneau-bean-jsonpatch = 5.8
juneau-bean/juneau-bean-jsonrpc = 5.4
juneau-bean/juneau-bean-jsonschema = 6.9
juneau-bean/juneau-bean-mcp-v20250618 = 4.5
juneau-bean/juneau-bean-mcp-v20260728 = 4.8
juneau-bean/juneau-bean-openapi-v3 = 4.6
juneau-bean/juneau-bean-rfc7807 = 2.2
juneau-bean/juneau-bean-swagger-v2 = 4.2
juneau-bom = 0.1
juneau-bundles = 0.1
juneau-bundles/juneau-microservice-jetty-bundle = 0.1
juneau-bundles/juneau-microservice-tomcat-bundle = 0.1
juneau-bundles/juneau-observability-otlp-bundle = 0.1
juneau-bundles/juneau-springboot-bundle = 0.3
juneau-core = 0.1
juneau-core/juneau-bct = 3.2
juneau-core/juneau-beanquery-postgres = 1.2
juneau-core/juneau-beanquery-sql = 2.5
juneau-core/juneau-commons = 15.8
juneau-core/juneau-config = 9.8
juneau-core/juneau-marshall = 22.1
juneau-core/juneau-marshall-rdf = 19.4
juneau-core/juneau-test-marshall-utils = 0.3
juneau-core/juneau-test-utils = 1.9
juneau-distrib = 0.1
juneau-examples = 0.1
juneau-examples/juneau-examples-core = 0.4
juneau-examples/juneau-examples-guides = 18.9
juneau-examples/juneau-examples-mcp = 11.2
juneau-integration-tests = 65
juneau-microservice = 0.1
juneau-microservice/juneau-microservice = 14.8
juneau-microservice/juneau-microservice-examples = 17.3
juneau-microservice/juneau-microservice-jetty = 7.8
juneau-microservice/juneau-microservice-test = 5.7
juneau-microservice/juneau-microservice-tomcat = 5.4
juneau-petstore = 0.1
juneau-petstore/juneau-petstore-core = 34.7
juneau-petstore/juneau-petstore-jetty = 9.3
juneau-petstore/juneau-petstore-springboot = 6.9
juneau-rest = 0.1
juneau-rest/juneau-console = 10.9
juneau-rest/juneau-console-bus = 13.1
juneau-rest/juneau-console-bus-websocket = 9.3
juneau-rest/juneau-console-datatables = 11.3
juneau-rest/juneau-console-freemarker = 1.1
juneau-rest/juneau-console-freemarker-tests = 17
juneau-rest/juneau-console-views = 17
juneau-rest/juneau-console-views-markdown = 1.4
juneau-rest/juneau-console-widgets = 14.7
juneau-rest/juneau-rest-auth-oauth-flow = 1.6
juneau-rest/juneau-rest-client = 11.1
juneau-rest/juneau-rest-client-apache-httpclient-45 = 8
juneau-rest/juneau-rest-client-apache-httpclient-50 = 10.2
juneau-rest/juneau-rest-client-classic = 8
juneau-rest/juneau-rest-client-jetty = 9.4
juneau-rest/juneau-rest-client-mcp = 3.9
juneau-rest/juneau-rest-client-mcp-auth = 5
juneau-rest/juneau-rest-client-mcp-v20250618 = 3.8
juneau-rest/juneau-rest-client-mcp-v20260728 = 5.2
juneau-rest/juneau-rest-client-okhttp = 15.4
juneau-rest/juneau-rest-common = 8.9
juneau-rest/juneau-rest-common-classic = 5.2
juneau-rest/juneau-rest-mock = 5.3
juneau-rest/juneau-rest-server = 11.3
juneau-rest/juneau-rest-server-auth-jwt = 7.9
juneau-rest/juneau-rest-server-auth-oauth = 6.9
juneau-rest/juneau-rest-server-auth-oidc-rp = 23.6
juneau-rest/juneau-rest-server-auth-saml = 33.8
juneau-rest/juneau-rest-server-management-logging = 3.9
juneau-rest/juneau-rest-server-mcp = 13.6
juneau-rest/juneau-rest-server-mcp-v20250618 = 10.6
juneau-rest/juneau-rest-server-mcp-v20260728 = 15.4
juneau-rest/juneau-rest-server-metrics-micrometer = 12
juneau-rest/juneau-rest-server-rdf = 0.8
juneau-rest/juneau-rest-server-reactive = 10.7
juneau-rest/juneau-rest-server-reactive-reactor = 6.9
juneau-rest/juneau-rest-server-springboot = 13.3
juneau-rest/juneau-rest-server-tracing-otel = 13.4
juneau-rest/juneau-rest-server-view-freemarker = 15.6
juneau-rest/juneau-rest-server-view-jsp = 14.6
juneau-rest/juneau-rest-server-view-mustache = 14.1
juneau-rest/juneau-rest-server-view-thymeleaf = 14.6
juneau-rest/juneau-terminal-bus = 4.3
juneau-rest/juneau-terminal-region = 20.2
juneau-rest/juneau-terminal-report = 5.8
juneau-sc = 0.1
juneau-sc/juneau-sc-server = 3.9
juneau-secret-macos-keychain = 4.2
juneau-shaded = 0.1
juneau-shaded/juneau-shaded-all = 0.2
juneau-shaded/juneau-shaded-core = 0.1
juneau-shaded/juneau-shaded-rest-client = 0.1
juneau-shaded/juneau-shaded-rest-server = 0.1
juneau-shaded/juneau-shaded-rest-server-springboot = 0.3
juneau-terminal = 181

# ─── [observability] ──────────────────────────────────────────────────────────
[observability]
#
# Consumed by scripts/microbench.py — NOT by the per-module perf guard.
#
# Baseline for the JMH ObservabilityNoopBenchmark.
# Metric: gc.alloc.rate.norm = bytes allocated per benchmark invocation.
# Assertion threshold: ≤ 8 bytes/op (see scripts/microbench.py --threshold).
#
# To re-baseline: run `python3 scripts/microbench.py observability`,
# read the reported gc.alloc.rate.norm, and update the line below.
#
# Measured on: developer M1 Pro laptop (Apple M1 Pro, Zulu JDK 25, forks=0).
# Note: forks=0 means the benchmark shares the JVM with Maven (exec:java).
#       Numbers are still valid for allocation assertions since gc.alloc.rate.norm
#       is deterministic per invocation modulo JIT warm-up.
#
observability-noop-alloc-bytes-per-op = 0.000  # as of 2026-05-28; set by FINISHED-116.
