profile_export_aiperf.json Schema
profile_export_aiperf.json Schema
After every aiperf profile run, AIPerf writes a summary JSON file (default name profile_export_aiperf.json) under the artifact directory. Each top-level metric entry holds a stats block; this page documents which fields appear in that block, when they appear, and how the schema is versioned.
The on-disk shape is produced by JsonMetricResult in src/aiperf/common/models/export_models.py. Fields that are unset are omitted from the JSON output (exclude_none=True), so the field set per metric varies by metric type — this page is the source of truth for which fields to expect where.
Per-metric stats fields
The metric type (record / aggregate / derived) is documented per-metric in Metrics Reference. At a glance: latencies and per-request lengths are record; counts and timestamps are aggregate; throughputs and run-level totals are derived.
Example
A run with 20 requests against a streaming chat endpoint produces entries shaped like this:
Note that request_throughput (derived) and request_count (aggregate) carry only unit + avg — no count, no sum, no percentiles. request_latency (record) carries the full set.
Top-level fields
In addition to the per-metric stats blocks, profile_export_aiperf.json includes top-level provenance:
telemetry_data
Schema 1.5 adds a platform field to each GPU summary and vendor-scopes GPU
telemetry metric names. NVIDIA metrics collected through DCGM or pynvml use
nvidia_* names, and AMD metrics collected through amdsmi use amd_* names.
Metric semantics are platform-specific; cross-platform comparisons require
validation of the workload, collector behavior, and metric definitions.
run_info
Schema 1.2 introduced run_info to surface the seed and sweep coordinates needed to reproduce a run from the JSON file alone, without consulting the internal run_config.json handoff file. Schema 1.3 extends it with identifiers and the redacted CLI command.
Example for variation 2 of a concurrency grid sweep with --random-seed 42:
Schema versions
The current schema version is exported as the top-level schema_version field on the JSON document. Bump on additive changes; coordinate a major bump for any field rename or removal.
Other JSON exports use independent schema versions
aiperf writes additional JSON files when --num-profile-runs >= 2:
profile_export_aiperf_aggregate.json— confidence aggregation across runs. Per-metric blocks have a different shape (mean,std,cv,se,ci_low,ci_high,t_critical,unit) and own their ownschema_version(AggregateConfidenceJsonExporter.SCHEMA_VERSION, currently"1.0").profile_export_aiperf_collated.json— pools per-request values from all runs into a single population, then emits combined percentiles (mean,std,p50,p90,p95,p99,count) under acombinedkey plus aper_runlist of run-level summaries. Uses its ownschema_version("1.0.0").
The schema_version documented on this page applies only to profile_export_aiperf.json. The other files evolve on their own cadence.
outputs.json schema
outputs.json holds the generated response text for each request. It is written when --export-outputs-json is set, which --export-level raw implies (pass --no-export-outputs-json to opt out). With --profile-export-prefix foo the file is named foo_outputs.json.
It carries its own schema_version (OutputsJsonExporter.SCHEMA_VERSION, currently "1.1"), independent of the one documented on this page.
datais profiling-only. Warmup responses live in the separate top-levelwarmuparray, so consumers that aggregate overdatanever count warmup traffic. Both arrays are sorted by(session_num, turn_index).benchmark_phaseisprofilingorwarmupand matches the array the entry sits in. Only a known-warmup phase is routed towarmup; an unrecognized phase stays indata.response_textis the concatenated generated text. For models that emit a separate reasoning channel, reasoning and answer are concatenated. It isnullwhen the response carried no content.metricsholds an allowlisted subset in display units (input_sequence_length,output_token_count,output_sequence_length,request_latency,time_to_first_token,inter_token_latency). Streaming-only metrics are absent from non-streaming records.- Schema
1.1addedwarmupandbenchmark_phase; both are additive over1.0. - The exporter sorts fragments through temporary files beside the final artifact and replaces
outputs.jsononly after the complete document is written. Working memory depends on the sorting chunk size, read/write buffers, and merge fan-in. Each merge input can retain a full record, so oversized responses can increase merge memory in proportion to the number of inputs. Failure or cancellation before final replacement preserves the source fragments and any previousoutputs.json.
Named phase artifacts
Named multi-phase workflows keep the root exports (profile_export_aiperf.{json,csv}, server_metrics_export.{json,csv}, and related files) as backward-compatible aggregate artifacts. Phase-scoped artifacts are additive and are referenced from phase_manifest.json, for example phases/<phase_name>/profile_export_aiperf.json, phases/<phase_name>/profile_export_aiperf.csv, and, when server metrics produced data for that phase, phases/<phase_name>/server_metrics.json.
For server metrics specifically, the root server_metrics_export.json preserves the legacy aggregate semantic phase view; in workflows with multiple phases of the same kind, its phase ranges may span inter-phase gaps. Consumers that need exact per-phase telemetry should read the phase-scoped server_metrics.json files.
For downstream parsers
- Treat absent fields as “not applicable to this metric type,” not “data missing.” A derived-metric block with no
countis normal; a record-metric block with nocountindicates a bug. - Do not assume the field set is closed. Future minor schema bumps may add fields. Use
schema_versionto detect compat; ignore unknown fields. unitis authoritative for the value’s interpretation. Do not infer units from the metric tag.