tiny.bench.writeSampledResultFields
Defined in tiny.bench.
Source
Source: lib/bench/src/event.zig:126
zig
pub fn writeSampledResultFields( comptime Row: type, object: pretty_json.Object, result: Row,) !void { if (result.sample_ns.len != result.sample_total_ns.len) { return error.InvalidSamplePairing; } try object.field("warmup", result.warmup); try object.field("samples", result.samples); try object.field("evals", result.evals); try writeU64Array(try object.array("sample_ns"), result.sample_ns); try writeU64Array(try object.array("sample_total_ns"), result.sample_total_ns); try writeSampleSequence(try object.object("sample_sequence")); try object.field("min_ns", result.min_ns); try object.field("max_ns", result.max_ns); try object.field("mean_ns", result.mean_ns); try object.field("median_ns", result.median_ns); try object.field("p75_ns", result.p75_ns); try object.field("p95_ns", result.p95_ns); try object.field("p99_ns", result.p99_ns); try object.field("total_ns", result.total_ns); if (@hasField(Row, "confidence_intervals")) { if (result.confidence_intervals) |intervals| { try writeBootstrapConfidenceIntervals( try object.object("confidence_intervals"), intervals, ); } else { try object.field("confidence_intervals", null); } }}Source: lib/bench/src/root.zig:117
zig
pub const writeSampledResultFields = event.writeSampledResultFields;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |