42.12 Performance qualification and the open benchmark collection
What you will learn
- Explain what PQ adds to OQ: workflows, closed-loop truth recovery and scale.
- Read PQ-001, PQ-002 and PQ-003 step by step, with their checks.
- Use the 100-project benchmark collection as a reproducible, truth-bearing test bed.
- Design a PQ for your own typical analysis.
Prerequisites: 42.9 Operational qualification and Chapter 3 a first hour with nlmx.
OQ proves each command alone. Performance qualification (PQ) asks whether the commands together, on realistic data and at realistic size, support the way an analyst actually works. The package has three PQ tests.
PQ-001 — a complete workflow on the reference population
Twelve commands, run in the order an analyst would use them, each taking the previous result as input. Seeds are fixed wherever randomness is involved, and the end state is compared with the known truth.
| Step | Command | What is checked |
|---|---|---|
| 1 | qc-data pop_oral1.csv --fail-on error |
exit 0, checksums verify |
| 2 | qc-nm pop_oral1.ctl --fail-on error |
exit 0, checksums verify |
| 3 | eda pop_oral1.csv |
checksums verify |
| 4 | autoinit pop_oral1.csv --seed 1 |
checksums verify |
| 5 | screen pop_oral1.csv --seed 1 |
the generating structure is recommended (1cmt_abs, ΔOFV 0 in the comparison table) |
| 6 | fit pop_oral1.ctl |
base OFV equals the baseline (−3017.9987 ± 0.05) |
| 7 | cov -c cov_frozen.covar |
WT on CL and WT on V retained; exactly two candidates retained |
| 8 | fit pop_oral1_cov.ctl |
OFV below −3140 (the screen predicted a drop of 152); THETA4 = 0.75 ± 0.15 and THETA5 = 1.0 ± 0.15 |
| 9 | vpc … --seed 3 |
the final model describes the median profile: at most one bin with the median outside its interval |
| 10 | forest |
six result rows |
| 11 | sims … --subjects 50 --estimates final --seed 1 |
the exposure summary has N = 50 for C_max |
| 12 | power --method fim |
the design estimates CL with acceptable precision (rse_ok = yes) |
Every step must exit 0 with verified checksums, and the decisions must match the truth: the right structure, the right two covariates, the generating exponents (0.75 and 1.0) within ±0.15, an OFV improvement consistent with the screen. This is the single most important test for an organisation, because it exercises the interfaces: the control stream written by one command is read by the next, the artifacts a fit produces are the artifacts cov expects, and the settings of one step flow into the next.
Note the coherence checks across steps: step 7's prediction of a 152-unit improvement is compared with step 8's actual improvement (more than 122 against the baseline of −3017.9987, i.e. below −3140). A screen that predicts 150 and a refit that delivers 5 would be an internal inconsistency neither step could reveal alone.
PQ-002 — a closed loop with known covariate effects
The generator is the data source; the covariate analysis must find what the generator planted.
generate --structure 1cmt-oral --subjects 150 --seed 11writes a complete project with true effects CLEGFR 0.6, CLWT 0.75, V~WT 1.0.cov -c g/nlmx.covaranalyses the generated base model.
The test then asserts, one candidate at a time, that CLWT, CLEGFR and V~WT are retained, that CLAGE, CLSEX (proportional), VAGE and VSEX (proportional) are rejected, and that CL~CRCL, a near-copy of EGFR, is uncertain or rejected but not retained as an independent effect. This is the two-sided design of page 42.11 at project scale. Its strength is that the truth is specified by the protocol, not by the program that produced the data: the program's two halves are being judged by a third party—the planted values.
PQ-003 — scale
generate --structure 2cmt-oral --subjects 600 --seed 5, then fit of the base model with the covariance step. The test requires:
- completion within the step time limit of 10 minutes (about 10 seconds on the supplier's machine; the elapsed time is recorded on the execution record);
MINIMIZATION SUCCESSFUL, verified checksums, at least 5000 observations processed, and the covariance file written.
PQ-003 is Low-risk and deliberately loose: it is a smoke test for scale, not a speed benchmark. Chapter 40.22 explains why speed is only compared after accuracy and decision-equivalence gates pass.
The open benchmark collection: a PQ you can extend
Beside the package lives a collection of 100 reproducible projects, each made by one generate command with a fixed seed. Together they span the structures and designs met in practice and carry known truth (truth.ctl) so that estimates can be checked.
| Set | Projects | Covers |
|---|---|---|
| A | 001–018 | One-compartment oral models, single and repeated dosing |
| B | 019–030 | One-compartment IV: bolus and infusion |
| C | 031–050 | Two-compartment models |
| D | 051–060 | Three-compartment models |
| E | 061–072 | The same systems as differential equations ($DES) |
| F | 073–088 | Estimation methods and true covariate models |
| G | 089–100 | Realistic clinical-study archetypes |
The recorded run summary gives a feel for the cost of the complete exercise:
| Set | Projects | Total fitting seconds | Mean | Slowest |
|---|---|---|---|---|
| A | 18 | 34 | 1.9 s | 5.0 s |
| B | 12 | 25 | 2.1 s | 5.7 s |
| C | 20 | 89 | 4.5 s | 21.3 s |
| D | 10 | 171 | 17.1 s | 47.1 s |
| E | 12 | 177 | 14.7 s | 80.2 s |
| F | 16 | 202 | 12.6 s | 67.7 s |
| G | 12 | 346 | 28.8 s | 84.9 s |
| All | 100 | 1043 (17.4 min) | median 2.7 s | 84.9 s |
All 100 finished with status ok and exit code 0; the collection's own README records 23 minutes of elapsed time on two CPU cores including generation and plotting. The slowest project (098, a three-compartment oral model with lag, written as ODEs, with several treatment groups and multiple BLQ conditions) took 85 s. The pattern is what theory predicts: model complexity and ODE solving, not subject count, drive the cost.
How to use it. Treat the collection as a standing PQ. Run all 100 after a platform change (Rscript run.R, or the bash and PowerShell scripts); then, for each project, compare the fitted parameters with truth.ctl and the covariate decisions with the known effects. Because every project is regenerated bit for bit from one command and a seed, any difference between two runs of the same project on two builds is a change in the program, not in the data.
Designing a PQ for your own work
- Take your most typical analysis (not your most exotic one): the sequence of commands your SOP calls for.
- Generate a data set with the same design (sampling, covariates, dose levels, dropout) and known truth.
- Run the whole sequence and write one assertion per decision: the structure chosen, the covariates retained and rejected, the parameter bands, the simulated exposure's N and range.
- Add one coherence check per interface: a number produced by one step that another step must reproduce.
- Record the elapsed time, not to benchmark but to detect a 100-fold change.
- Re-run on every platform change, together with the OQ areas the sequence uses.
Review checklist
- Does the PQ follow the analyst's own sequence, not a convenient one?
- Is the truth specified by the protocol and compared with the decisions, not only with the numbers?
- Is there a coherence check at every interface between commands?
- Is a time limit set only as a smoke criterion?
Navigation
See the previous page, the next page and the complete validation reference.