emit fractional benchmark nanoseconds in libtest's JSON output format

This commit is contained in:
The 8472 2024-05-05 22:54:11 +02:00
parent 295432b40e
commit e867d7c35e

View File

@ -167,8 +167,8 @@ fn write_result(
),
TestResult::TrBench(ref bs) => {
let median = bs.ns_iter_summ.median as usize;
let deviation = (bs.ns_iter_summ.max - bs.ns_iter_summ.min) as usize;
let median = bs.ns_iter_summ.median;
let deviation = bs.ns_iter_summ.max - bs.ns_iter_summ.min;
let mbps = if bs.mb_s == 0 {
String::new()