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

buglets with documentation of units in results.json #66

Open
RobertHenry6bev opened this issue Jul 22, 2020 · 1 comment
Open

buglets with documentation of units in results.json #66

RobertHenry6bev opened this issue Jul 22, 2020 · 1 comment

Comments

@RobertHenry6bev
Copy link
Contributor

The results.json file contains, after a fashion, documentation on all of the measured quantities. Phew!

The documentation is in places inconsistent or incomplete.

Printing of benchmarks/cpu/raw prints far more digits of precision than the underlying system is capable of measuring.

Some times are reported in ms, and other times in us, and rates in per-second. I'd pick either ms or us, and stick with per-second.

Pedantic: if you report in us, perhaps use UTF8 mu symbol rather than Latin u.

Many, but not all, longDescriptions have units. All should have units, replicating what's already in shortDescription. See benchmarks/build-time, benchmarks/start-time, benchmarks/published-size where the units are omitted.

Some shortDescriptions use '(ms)' but the longDescription says 'in ms'. Use the style '(...)' uniformly.

Are sizes (such as benchmarks/swap) reported in SI Mega (1e6) or Mibi (1024*1024) units. This may be tricky.

The "format" is always given as "n0". I had to look n0 format up. That's irrelevant, since this is json, and json doesn't support using ',' to group digits. I don't see the point in reporting "format".

What happens if the number being reported is mis-computed upstream as Inf or NaN. What happens when it is printed in the json file? (JSON doesn't support Inf or NaN...)

@sebastienros
Copy link
Member

The results.json file contains, after a fashion, documentation on all of the measured quantities. Phew!

You can exclude these from the results file by using --no-metadata and --no-measurements respectively

The documentation is in places inconsistent or incomplete.

Thanks for your recent help on that. Please file specific issues when you find some.

Printing of benchmarks/cpu/raw prints far more digits of precision than the underlying system is capable of measuring.

#100

Some times are reported in ms, and other times in us, and rates in per-second. I'd pick either ms or us, and stick with per-second.

I am following what dotnet counters export. And some clients (bombardier, wrk) use varying units too.
But filed this issue to follow up, we might be able to decide what common unit to use #101

Pedantic: if you report in us, perhaps use UTF8 mu symbol rather than Latin u.

Noted

Many, but not all, longDescriptions have units. All should have units, replicating what's already in shortDescription. See benchmarks/build-time, benchmarks/start-time, benchmarks/published-size where the units are omitted.
Some shortDescriptions use '(ms)' but the longDescription says 'in ms'. Use the style '(...)' uniformly.

Created #102

I just copied the dotnet counters descriptions. Could be better

Are sizes (such as benchmarks/swap) reported in SI Mega (1e6) or Mibi (1024*1024) units. This may be tricky.

Noted

The "format" is always given as "n0". I had to look n0 format up. That's irrelevant, since this is json, and json doesn't support using ',' to group digits. I don't see the point in reporting "format".

This format is not for description purpose, but for output formatting on the controller. It's just UI metadata.
Note that right now it also has data with n02. And json is also used for Bombardier's raw results.

What happens if the number being reported is mis-computed upstream as Inf or NaN. What happens when it is printed in the json file? (JSON doesn't support Inf or NaN...)

It should be stored as a string in this case.

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

2 participants