1

I just ran some Rust benchmarks and I see that the results are always displayed in ns. Is is possible to change the time units of the benchmark to something else? For example, to ms?

1 Answer 1

1

No, it is not possible.

Unless you want to write a wrapper script that runs a regex and replaces the numbers after dividing them, but I doubt that’s what you meant.

There are 10^9 nanoseconds in a second.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the info. No, I was not looking to a manual solution as writing a wrapper, something more automatic.