Is there a platform that exposes the high precision timer?
not currently, but we could add it to the CLI platform!
That would be useful for benchmarking
What type of benchmarking are you trying to do? We have a benchmark platform that is pretty simple that specifically is for testing algoritms and their executions speed. If you are looking at more holistic performance, I would definitely advise looking at an external timing tool like hyperfine.
Microbenchmarks and algorithms. Is the benchmark platform cli/benches/time_bench.rs
?
crates/cli_testing_examples/benchmarks
Just a number of simple apps that bench specific algorithms. The platform is a simple zig timer (could probably be improved).
Also has the ability to load integers for std for config....so super minimal.
Oh, and can write to stdout
If that is too minimal for what you want to do, I think adding timers (or just a way to get the current time in some high precision format) to the cli platform would be very reasonable.
Let us know if you need help with the platform
Thank you, will play with this
See also crates/cli/benches/README.md.
Last updated: Jul 05 2025 at 12:14 UTC