pub fn diff_to_json<W: Write>(diff: &SubMsBenchDiff, out: &mut W) -> Result<()>
Emit the diff as a single JSON object for downstream CI tooling. Byte-equivalent to Java’s SubMsBench.diffToJson.
SubMsBench.diffToJson