Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can specify or unify the time unit for bench testing #2908

Open
chen-qingyu opened this issue Sep 18, 2024 · 0 comments
Open

Can specify or unify the time unit for bench testing #2908

chen-qingyu opened this issue Sep 18, 2024 · 0 comments

Comments

@chen-qingyu
Copy link

chen-qingyu commented Sep 18, 2024

Description

When I run catch2 benchmarks, I got some result like:

benchmark name                            samples    iterations          mean
-------------------------------------------------------------------------------
xxx                                            100           138    145.246 ns
xxx                                            100            81    245.556 ns
xxx                                            100            49    408.755 ns
xxx                                            100            35    572.086 ns
xxx                                            100           117     150.47 ns
xxx                                            100            70    287.971 ns
xxx                                            100             5     4.2428 us
xxx                                            100           100     199.36 ns

There is a microsecond in a pile of nanoseconds, which can easily cause confusion. Is there any way to unify the time unit?

Furthermore, can the precision of decimal output be standardized? For example, all outputs are to two decimal places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant