Benchmarks
All numbers on this page are read from the committed result files in bench/results/2026-11-13/ (measured 2026-11-13). Nothing here is estimated. Regenerate the files with the commands in Methodology and run make docs.
Summary
| Benchmark |
Result |
Source (2026-11-13) |
| SDTM mapper, PSK-001 |
0 errors, 2 warnings; spec accuracy 117/117; record match 100% of 10,410; 0.75 s; rebuild identical: yes |
bench/results/2026-11-13/sdtm.json |
| SDTM mapper, PSK-002 |
0 errors, 2 warnings; spec accuracy 112/112; record match 100% of 8,361; 0.53 s; rebuild identical: yes |
bench/results/2026-11-13/sdtm.json |
| Tool accuracy suite |
7/7 reference calculations matched (100%) |
bench/results/2026-11-13/tools.json |
| Skill evals (deterministic replay, 36 skills) |
197/197 cases pass (100%) |
bench/results/2026-11-13/deterministic.json |
| Safety and honesty suite |
26/26 tests pass |
bench/results/2026-11-13/safety.json |
SDTM mapper on the synthetic studies
| Study |
Engine |
Errors |
Warnings |
Spec variables matched |
Record match |
Gold records |
Seconds |
Byte-identical rebuild |
| PSK-001 |
pharmaskills-native 1.0.0 |
0 |
2 |
117/117 (100%) |
100% |
10,410 |
0.75 |
yes |
| PSK-002 |
pharmaskills-native 1.0.0 |
0 |
2 |
112/112 (100%) |
100% |
8,361 |
0.53 |
yes |
Variable-level mapping accuracy by domain (matched/total):
| Study |
AE |
CM |
DM |
EX |
LB |
TS |
VS |
| PSK-001 |
18/18 |
15/15 |
24/24 |
14/14 |
23/23 |
6/6 |
17/17 |
| PSK-002 |
18/18 |
15/15 |
24/24 |
14/14 |
18/18 |
6/6 |
17/17 |
How to read this
- The benchmark measures the deterministic engine executing the committed gold specification, so spec accuracy and record match show that the engine reproduces the gold datasets exactly. It does not measure how well a model drafts a spec. The 95 percent spec accuracy target for a model-written spec is verified in the test suite only with recorded model answers.
- The validation engine is the native check set (
pharmaskills-native). CDISC CORE could not be run in the build environment, so no CDISC CORE result is claimed. Reports always name the engine that ran.
- Studies PSK-001 and PSK-002 are synthetic. Results on real study data will differ.
- Run time is the wall clock of the deterministic pipeline on the build machine and excludes model calls.
| Reference calculation |
Expected |
Got |
Match |
Reference |
| sample size: two means, delta 0.5 SD, power 90%, alpha 0.05 two-sided (per arm) |
86 |
86 |
yes |
noncentral t power calculation; agrees with G*Power and R power.t.test (n = 85.03 -> 86) |
| HED: rat NOAEL 50 mg/kg (mg/kg) |
8.1 |
8.1 |
yes |
FDA 2005 guidance: 50 x 6 / 37 = 8.1 mg/kg |
| PRR: 2x2 table a=10 b=90 c=20 d=880 |
4.5 |
4.5 |
yes |
hand calculation (10/100) / (20/900) |
| NCA: AUCinf of 100 exp(-0.1 t), IV bolus |
1000 |
1000 |
yes |
analytic integral 100 / 0.1 |
| NCA: clearance of the same profile (dose 100) |
0.1 |
0.1 |
yes |
dose / AUCinf = 100 / 1000 |
| ICER: dC 20000, dE 1.0 |
20000 |
20000 |
yes |
(30000 - 10000) / (5 - 4) |
| shelf life: noise-free line 100 - 0.5 t, criterion 90 (months) |
20 |
20 |
yes |
analytic: 100 - 0.5 t = 90 at t = 20 |
Skill evals
Mode: deterministic replay of committed recorded answers. This proves the eval cases, checkers and example outputs are consistent; it is not a measurement of a model. Model-mode results are recorded separately when run and are not part of this page.
| Lifecycle stage |
Cases passed |
Cases |
Pass rate |
| Discovery |
17 |
17 |
100% |
| Preclinical |
18 |
18 |
100% |
| Clinical development |
39 |
39 |
100% |
| Clinical data |
23 |
23 |
100% |
| Regulatory |
34 |
34 |
100% |
| Safety |
23 |
23 |
100% |
| CMC and manufacturing |
12 |
12 |
100% |
| Quality and compliance |
14 |
14 |
100% |
| Medical and access |
12 |
12 |
100% |
| All stages |
5 |
5 |
100% |
| Overall |
197 |
197 |
100% |
Safety and honesty suite
26 of 26 tests pass (0 failed, 0 skipped; source pytest tests/unit/test_safety_suite.py, recorded by pharmaskills bench safety). Each case is enforced by a tool, a committed refusal sample or instruction text; see Guardrails for which, and for what the suite does not prove.
Methodology
- SDTM mapper.
pharmaskills bench sdtm --ct-file tests/fixtures/ct/sdtm_terminology_subset.txt --out bench/results/<date>/sdtm.json builds PSK-001 and PSK-002 from the committed raw files and gold spec, validates them, compares every variable to the gold spec and every record to the gold datasets, rebuilds to check byte-identical output and records wall-clock time.
- Tool accuracy.
pharmaskills bench tools --out bench/results/<date>/tools.json runs reference calculations whose expected values come from hand calculation, analytic integrals or published guidance (sample size, HED, PRR, NCA, ICER, shelf life) and compares within a stated tolerance.
- Skill evals.
pharmaskills eval run --results-dir bench/results replays the recorded answers of every eval case through the check types (file_exists, tool_pass, exact_value, contains_section, banner_present, no_fabrication, refusal, rubric). The gate is 85 percent per skill. Model mode (--mode model) runs a headless agent and records the model name.
- Safety suite.
uv run pytest tests/unit/test_safety_suite.py runs the adversarial and guardrail cases in tests/evals/safety/cases.yaml.
- Reporting rule. Published numbers are read from
bench/results/ by scripts/gen_docs.py; a number with no result file is not published.