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

How to see more info in the output? #99

Closed
Zabrane opened this issue Aug 18, 2023 · 3 comments
Closed

How to see more info in the output? #99

Zabrane opened this issue Aug 18, 2023 · 3 comments

Comments

@Zabrane
Copy link

Zabrane commented Aug 18, 2023

Hi @martinus

First of all, thanks for nanobench.
When trying the example in the doc on both Linux/macOS with nanobench v4.3.11, i got this:

$ ./full_example
|               ns/op |                op/s |    err% |     total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
|                7.65 |      130,673,512.18 |    0.8% |      0.01 | `compare_exchange_strong`

But the doc shows a different output format with additional columns:

|               ns/op |                op/s |    err% |          ins/op |          cyc/op |    IPC |         bra/op |   miss% |     total | benchmark
|--------------------:|--------------------:|--------:|----------------:|----------------:|-------:|---------------:|--------:|----------:|:----------
|                5.63 |      177,595,338.98 |    0.0% |            3.00 |           17.98 |  0.167 |           1.00 |    0.1% |      0.00 | `compare_exchange_strong`

What should I do to get these extra columns (ex. ins/op, cyc/op ...)?
Help appreciated.

@helmesjo
Copy link

helmesjo commented Aug 19, 2023

See the docs, specifically this piece:

image

Though it doesn't appear to work in WSL (haven't investigated, just noticed it's missing).

@martinus
Copy link
Owner

Exactly, unfortunately additional hardware information is only available on Linux.

@Zabrane
Copy link
Author

Zabrane commented Aug 20, 2023

Thanks guys. Running the same example with sudo on Linux gave me the extra perf's columns

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

3 participants