KPI workloads and metrics#

KPI measures nine frozen workloads on three generated fixture bundles. This page defines what each workload does, its frozen settings, the work it must produce, and what each recorded time and memory value covers. The KPI glossary defines workload, bundle, attempt, campaign, controller, budget and the other KPI terms used here. Consumer terms such as backend, ovstage, OpenUSD, query, stage, duplicate and Suite API keep their consumer meaning. The KPI maintainer guide gives the quick start and explains how a run works, and Run KPI explains how to run KPI. Representative fixture stages explains how the bundles are generated, and KPI frozen contracts and maintenance the contract files behind these tables.

The three bundles are body-representative, cockpit-representative and body-representative-depth, a full-motion Body bundle that only the Dynamic depth workload uses. The workloads cover static and dynamic canonical reports (the overlap reports that the canonical API returns), fresh saves through the Suite API, Body maximum local depth in MEDIUM mode (OVCLASH_MAX_LOCAL_DEPTH_MODE_MEDIUM, the refined estimate of medium accuracy), Cockpit 7.5 mm clearance and Body duplicates-only detection. Both backends, ovstage and OpenUSD, run the same stages, settings, scopes and sample grids on Windows x86-64, Linux x86-64 and Linux AArch64. Every launcher run measures the same nine workloads, and no renderer or GPU is needed.

The nine workloads#

Workload ID

Scope

Schedule

Consumer operation

benchmark-body-representative-static

Full scene

Time zero; 1 sample

Create the runtime, open, detect, extract every report

benchmark-body-representative-dynamic

Full scene

0–2 s at 32 samples/s; 65 samples

Same, for every dynamic record

benchmark-body-representative-suite-save

Full scene

Same 65 samples

Detect, fetch all results, commit and explicitly save a fresh database

benchmark-cockpit-representative-static

Full scene

Time zero; 1 sample

Create the runtime, open, detect, extract every report

benchmark-cockpit-representative-dynamic

Structure versus Module, Tool and Probes

0–2 s at 32 samples/s; 65 samples

Same, for every dynamic record

benchmark-cockpit-representative-suite-save

Same scoped selection

Same 65 samples

Detect, fetch all results, commit and explicitly save a fresh database

benchmark-body-representative-dynamic-depth

Full scene

0–1.125 s at 8 samples/s; 10 samples

Canonical reports with MEDIUM depth

benchmark-cockpit-representative-static-clearance

Full scene

Time zero; 1 sample

Canonical reports with 7.5 mm clearance

benchmark-body-representative-duplicates-only

Full scene

Time zero; 1 sample

Duplicate-only detection

Cockpit selection A is /World/Station/Cell/Structure. Selection B contains /World/Station/Cell/Mover/Module, /World/Station/Cell/Mover/Tool and /World/Station/Cell/Mover/Probes. Every Body workload and every Cockpit static workload uses the full scene.

Sampling includes both endpoints. A static workload runs 11 pipeline steps. A dynamic or Suite-save workload runs its sample count plus 7: 72 for the 65-sample workloads and 17 for Dynamic depth. Samples without contacts are still required work. Detection is sampled, not continuous: a contact that occurs only between two samples is not guaranteed to be found.

Query settings#

Each workload runs its query with these frozen settings. They are the consumer settings of the same names; Settings gives the type, range and default of each.

Setting group

Frozen values

Tasking

nb_tasks=4, new_task_manager=false, single_threaded=false

Selection

ignore_invisible_prims=true, subcomponent_filtering=false, enable_point_clouds=false, use_usdrt=false

Contact mode

coplanar=true, any_hit=false, quantized=false, overlap_code=3

Bounds and geometry

tight_bounds=true, tris_per_leaf=15, triangle_limit=0; tolerance=0 except Cockpit static clearance (0.75 stage units, 7.5 mm at metersPerUnit=0.01)

Epsilons

pose_epsilon and area_epsilon about 1e-6, bounds_epsilon about 0.01; contact_epsilon, contact_cutoff and the Suite depth_epsilon are -1 (off)

Depth and duplicates

max_local_depth_mode=0 except Dynamic depth (2, MEDIUM); only_find_duplicates=false except duplicates-only

Results

Report flags=30: the OVCLASH_OVERLAP_REPORT_FLAG_ bits OUTLINE, FACES0, FACES1 and POINTS0; purge_permanent_static_overlaps=true, purge_permanent_dynamic_overlaps=false, ignore_redundant_overlaps=false

Persistence

Suite-save workloads: a new database for every attempt, closed in SQLite’s DELETE journal mode

The contract files store the exact values, including the native float conversions and every Suite-specific setting; this table only summarizes them. Do not change tasking, scopes or sampling to make a measurement faster: a different interval, task manager, scope or sample rate defines different work.

Depth, clearance and duplicates-only workloads#

These three workloads each change one setting of a base workload. Static clearance and duplicates-only run on the bundle of their base static workload. Static clearance has its own reviewed expected work. Duplicates-only keeps the 353 Body static duplicates and expects no overlap pairs, records, elements or report bytes.

Dynamic depth runs on the dedicated body-representative-depth bundle, which compresses the same Body motion into 1.125 seconds; see geometry and motion. Its expected work binds every record’s maximum local depth to its pair, sample and element count. MEDIUM depth is computed inside the timed pipeline.

The nine-workload contract describes the extension and depth references, how the depth rows are captured and replayed, and what the references do not prove.

Counts and saved stage sizes#

Each bundle’s stage counts come from the inventory metadata in its generated bundle.json; they are not an independent geometric census.

Bundle

Visible / hidden meshes

Authored / expanded visible triangles

Instance roots

Layer files

All layer bytes

root.usda bytes

body-representative

2,295 / 1,507

1,197,415 / 4,695,804

1,881

102

47,523,889

1,124,789

body-representative-depth

2,295 / 1,507

1,197,415 / 4,695,804

1,881

102

47,513,313

1,114,213

cockpit-representative

1,642 / 6,400

1,421,750 / 1,565,522

63

2,200

120,791,385

196,883

An authored definition can appear in many composed placements, so expanded triangles exceed authored ones. Instance roots are not native prototype-cache entries. Layer bytes sum the lengths of the manifest’s member files; they exclude bundle.json, reports, databases and filesystem allocation.

The x86-64 contract expects this work. Volume is the native report size for canonical-report workloads and the logical BLOB size for Suite saves.

Workload

Meshes

Pairs

Records

Duplicates

Elements

Volume (bytes)

Body static

2,295

5,159

5,159

353

754,551

9,770,288

Body dynamic

2,295

4,303

137,068

0

35,927,232

240,292,792

Body Suite save

2,295

4,303

137,068

0

35,927,232

204,655,112

Cockpit static

1,642

3,027

3,027

10

217,321

6,883,872

Cockpit dynamic

1,642

115

790

0

7,585

401,008

Cockpit Suite save

1,642

115

790

0

7,585

195,608

Body dynamic depth

2,295

4,221

21,959

0

5,572,042

38,367,408

Cockpit static clearance

1,642

3,612

3,612

10

50,343,522

14,743,488

Body duplicates only

2,295

0

0

353

0

0

The columns count the work of one workload; the glossary defines the run, attempt and campaign terms.

Column

Meaning

Meshes

The native nb_meshes statistic

Pair

One overlap group; duplicates are counted separately

Record

One pair at one sampled time, so dynamic workloads have more records than pairs

Element

A record’s number of overlapping triangles or points (nbElements in the C ABI); not a face-array length or an outline-segment count

On Linux AArch64, three workloads expect different values, each pinned exactly by its own reviewed file:

Workload

Linux AArch64 value

File

Cockpit static

Element counts of 8 records (each +1 or -1; total 217,321 unchanged); 6,883,868 report bytes

benchmarks/kpi/representative_arm_expectations.json

Cockpit static clearance

Element counts of 7 records, 50,343,528 elements in total; 14,743,080 report bytes

benchmarks/kpi/representative_arm_clearance_expectations.json

Body dynamic depth

38,367,432 report bytes

benchmarks/kpi/representative_arm_depth_expectations.json

Pair and sample identities, duplicates and settings stay the same, and the checks keep no tolerance. See why Linux AArch64 has its own expectation files.

Dynamic depth also writes a packed depth stream, benchmark-depth.bin, of 439,180 bytes: one 20-byte row for each of its 21,959 records. Depth rows gives the row format.

Timing boundaries#

operation_seconds runs from runtime creation through usable results: complete canonical report consumption, or a successful explicit Suite save. A Suite operation also includes fresh database creation and query insertion. Process launch, module import, stage generation, CPU admission and teardown are outside this interval. The attempt’s Total in the console workload tables is the attempt’s wall time: it adds CPU placement and admission, process launch, module import, verification, retention and cleanup to the operation. Each attempt starts a fresh process and runtime after the input preflight, the content hash of the bundles at the start of the session, has warmed the filesystem cache, so it is not a cold-disk measurement. Suite workloads record this as the local-disk-warm-cache-after-preflight filesystem policy.

Each attempt records these clocks in its metrics object. Every value is a number of seconds. “Canonical” marks the seven canonical-report workloads (operation canonical-cold), and “Suite” the two Suite saves (operation suite-fresh-save).

Field

Type

Required

Boundary

Inside operation_seconds?

context_seconds

number, seconds

Canonical

Creating the canonical runtime

Yes

load_seconds

number, seconds

Every workload

Opening the stage

Yes

pipeline_step_seconds

number, seconds

Every workload

Sum of the Python run_pipeline_step calls, including binding overhead and every native pipeline phase

Yes

pipeline_loop_seconds

number, seconds

Every workload

The enclosing pipeline loop, including the step calls

Yes

result_capture_seconds

number, seconds

Canonical

Canonical report extraction, release and metadata reduction in one traversal

Yes

extraction_seconds

number, seconds

Canonical

Fetching, copying and releasing canonical report buffers

Yes; inside result capture

metadata_collection_seconds

number, seconds

Canonical

The rest of result capture: canonical metadata reduction and bookkeeping

Yes; inside result capture

serialization_seconds

number, seconds

Suite

Suite fetch-and-save iteration, native commit and explicit save

Yes

extraction_serialization_seconds

number, seconds

Suite

The same interval as serialization_seconds

Yes; do not add the two

verification_seconds

number, seconds

Every workload

Child checks after result-ready; canonical-report workloads add the metadata time already counted in result capture

Partly

retention_seconds

number, seconds

Every workload

Writing and hashing the child receipt (the child’s result record), the canonical cardinality files and, for Dynamic depth, the depth stream

No

readback_summary_seconds

number, seconds

Suite

The controller’s single metadata scan of the closed Suite database

No; inside controller verification

controller_verification_seconds

number, seconds

Every workload

Controller contract and expected-work checks, excluding retention

No

controller_retention_seconds

number, seconds

Every workload

Hashing the Suite database, then writing and hashing its stored summary

No

total_verification_seconds

number, seconds

Every workload

verification_seconds plus controller_verification_seconds

Partly; not a disjoint total

input_admission.begin_seconds, input_admission.end_seconds

number, seconds

Once per campaign, in the controller’s input_admission record, not per attempt

Full bundle-content checks at the start and end of the session

No

These clocks overlap. Do not add child verification to operation time, and do not sum nested clocks to reconstruct total cost. Use the wall clock of the whole run or campaign for overall cost, including preparation, admission waits and retention. Generation timing is kept per bundle and in an aggregate receipt outside the measured workloads.

Metrics and measurement boundaries#

The noise gate and the budgets cover only the required metrics of each workload:

Operation

Required metrics

Canonical report (canonical-cold): every workload except the Suite saves

operation_seconds, load_seconds, pipeline_step_seconds, result_capture_seconds, resident_high_water_bytes; on Windows also private_high_water_bytes

Suite save (suite-fresh-save)

operation_seconds, load_seconds, pipeline_step_seconds, extraction_serialization_seconds, database_bytes, resident_high_water_bytes; on Windows also private_high_water_bytes

Seven canonical and two Suite workloads give 47 required cells per CPU model on Linux and 56 on Windows. Every other recorded value is descriptive and has no budget:

  • pipeline_samples_per_second is the canonical dynamic sample count divided by pipeline_step_seconds.

  • logical_payload_bytes is the sum of stored BLOB lengths from the controller’s metadata scan.

  • serialization_seconds records the same interval as extraction_serialization_seconds.

  • The sampled and starting memory values are described in memory scope.

database_bytes is the physical length of the closed SQLite file. It is a required metric with a budget in each platform’s packages, not an expected value, because it differs between platforms; see expected-work identity.

The budget noise of extraction_serialization_seconds is at least 30% of its pooled median, because its time varies between runner hosts more than one collection job shows; see budget limits.

Canonical cold operations#

The operation starts immediately before context creation. It includes stage opening, complete settings application and readback, scope, pipeline creation and execution, and every requested report buffer. Report mask 30 copies the matrices, the point-size scalar, faces, outlines and points in bounded chunks, and releases each borrowed report. The same traversal collects pair, sample and element metadata. The six base workloads have no payload hash oracle, raw binary replay capture or second report traversal. The Body dynamic-depth workload adds the post-result-ready metadata replay described in the nine-workload contract. report_bytes counts the two matrices, the point-size scalar and the buffers at their native field sizes, excluding pointers and Python object overhead. Extraction neither keeps nor hashes the buffer contents.

Canonical attempts also keep diagnostic buffer counts in benchmark-report-cardinalities.bin and a canonical pair-name mapping in benchmark-report-cardinality-pairs.json. Each packed 33-byte row identifies its pair and sample, the face-buffer counts for both canonical object names, the outline-segment count, the point-index count, the element count and the point-owner side. These are counts from the same report lease; no geometry or buffer content is copied again. Collecting them belongs to metadata time inside the operation. Writing and hashing the files happens after result-ready and belongs to retention_seconds. The controller checks their bounded file lengths, hashes and binding to the compact summary without replaying single rows.

benchmark-report-cardinalities.bin (format ovclash-kpi-report-cardinalities-v1) holds one row per record, little-endian, with no header and no padding. Its length is exactly the record count times 33 bytes:

Field

Type

Offset (bytes)

Description

Pair

uint32

0

Index of the pair, its native overlap group, in the pairs list of the pair mapping

Sample

uint32

4

Index of the record’s sample in the workload’s sample grid

Faces 0

uint32

8

Face-buffer count of the first canonical object name of the pair

Faces 1

uint32

12

Face-buffer count of the second canonical object name

Outline segments

uint32

16

Outline-segment count

Points

uint32

20

Point-index count

Elements

uint64

24

The record’s element count

Point owner

uint8

32

The canonical side, 0 or 1, that owns the points

benchmark-report-cardinality-pairs.json is one compact ASCII JSON object with sorted keys. Every field is required, and no other field is allowed:

Field

Type

Required

Default or values

Description

schema_version

integer

Yes

1

Format version

format

string

Yes

ovclash-kpi-report-cardinality-pairs-v1

Format name

summary_sha256

string

Yes

64 lowercase hexadecimal digits

SHA-256 of the attempt’s retained compact summary

sample_grid_sha256

string

Yes

64 lowercase hexadecimal digits

The sample grid identity of the summary

pairs

array of two-string arrays

Yes

One entry per pair, in native overlap-group order

The two canonical prim paths of each pair; the rows’ Pair field indexes this list

The files help locate a report-volume difference; the expected-work and exact volume checks still decide the verdict. They are bounded diagnostic evidence (32 MiB for the pair mapping, 160 MiB in total), not a geometry oracle or a source of new expectations.

The timer stops at result-ready, before statistics, the expected-work comparison, receipt writing and teardown. Context creation is included; process launch, module import and input preparation are outside. A fresh child gives a cold library state, while input preflight has already warmed the filesystem caches.

Dynamic and Suite operations#

Pipeline throughput excludes loading and report consumption. Step-name lookup and schedule validation are outside the step-call sum. A schedule cannot be inferred from report records alone, because some required samples have no clashes.

The Suite operation starts before runtime, serializer and data-handle creation. It includes fresh database creation, query insertion, stage opening, settings and scope, the pipeline, a full fetch_and_save_overlaps iteration, iterator closure, native commit and a successful explicit data.save(). This is API-level save completion, not a power-loss durability guarantee. Serialization is already inside the operation.

After result-ready, the child collects live metadata, closes the database and drains native owners. The controller then scans the closed database once. It compares every stored header and frame’s metadata with the live results and the frozen expectations, including the exact saved query settings and logical BLOB length. No geometry predicate or payload decoding runs. DELETE journal mode and the absence of the WAL (write-ahead log), SHM (shared-memory index) and journal sidecar files are required. The controller hashes the database and keeps benchmark-stored-summary.json for calibration export, which does not repeat that scan.

Memory scope#

Linux VmHWM and Windows PeakWorkingSetSize cover the operation child from process startup through result-ready, as resident_high_water_bytes. Windows also records PeakPagefileUsage as private_high_water_bytes. These counters include Python, runtime bootstrap, normal result capture and the in-process observer, even though operation latency starts later. They exclude the controller and post-result verification and are not process-tree aggregates. The public-API operation must not spawn descendants.

Each memory value is an integer number of bytes in the attempt’s metrics object. A value that the observer could not take is left out of metrics, so only the required metrics must be present:

Field

Type

Required

Console label

Meaning

resident_high_water_bytes

integer, bytes

Yes, a required metric of every workload

OS peak resident

The largest resident usage the OS recorded since process startup (Linux VmHWM, Windows PeakWorkingSetSize), even if the memory was freed before result-ready

private_high_water_bytes

integer, bytes

On Windows, a required metric; never recorded on Linux

OS peak private commit

Windows only: the largest process-private committed memory (PeakPagefileUsage), backed by RAM or the page file; not a measure of resident RAM

sampled_resident_peak_bytes, sampled_private_peak_bytes

integer, bytes

No. Recorded only when the observer saw the result-ready boundary and took at least three samples; the private value only on Windows

Sampled peak

The largest periodic reading during observation; it can miss a short spike between readings

starting_resident_bytes, starting_private_bytes

integer, bytes

No; the private value only on Windows

Starting

The first reading

All of them describe absolute memory sizes, not growth; do not add or subtract them as separate allocations. Resident memory is RAM held by the process, including shared pages. This observer provides no private-memory counter on Linux.

Memory freezes at the explicit result-ready boundary, before the remaining audit, receipt serialization and teardown. Canonical metadata collected inside the operation is included. A final process-exit peak cannot repair an absent boundary or a missing counter. Resident and private-commit values are distinct series; neither establishes minimum machine RAM or the capacity for an arbitrary scene.