google / fleetbench

Benchmarking suite for Google workloads
Apache License 2.0
116 stars 10 forks source link

libc output - time_unit is ns instead of seconds #19

Closed BatelOved closed 11 months ago

BatelOved commented 11 months ago

In the first line, the cpu_time is 0.0982076 ns, meaning less the 1 cpu cycle, therefore doesn't make sense of course..

I would expect to have cpu_time ~ bytes / bytes_per_second, and it is the case, just that cpu_time should be in seconds unit and not in nanoseconds as the time_unit suggests.

I would suggest to check that in the other benchmarks as well.

Thanks.

image

andreas-abel commented 11 months ago

For the libc benchmarks, the value in cpu_time is the time it takes to process one byte of data (see https://github.com/google/fleetbench/tree/main/fleetbench/libc#L311). Therefore, it can be less than one cycle.