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

QUERY: "Change" column not populated when running asv compare #1414

Closed
philipc2 opened this issue Jul 2, 2024 · 2 comments · Fixed by #1421
Closed

QUERY: "Change" column not populated when running asv compare #1414

philipc2 opened this issue Jul 2, 2024 · 2 comments · Fixed by #1421

Comments

@philipc2
Copy link

philipc2 commented Jul 2, 2024

Is the "Change" column supposed to be blank when running asv compare? I was under the impression that this would include the difference in the benchmark values between the two results.

Below is a screenshot of a couple entries from when I ran asv compare.

image

Here is the full output: UXARRAY/uxarray#831 (comment)

@HaoZeke
Copy link
Member

HaoZeke commented Aug 11, 2024

Yup, this is expected for the Ratios observed. Essentially (maybe worth documenting) the mark in the Change column comes from here:

asv/asv/commands/compare.py

Lines 293 to 330 in ee3b187

if (version_1 is not None and version_2 is not None and
version_1 != version_2):
# not comparable
color = 'lightgrey'
mark = 'x'
elif time_1 is not None and time_2 is None:
# introduced a failure
color = 'red'
mark = '!'
worsened = True
elif time_1 is None and time_2 is not None:
# fixed a failure
color = 'green'
mark = ' '
improved = True
elif time_1 is None and time_2 is None:
# both failed
color = 'default'
mark = ' '
elif _isna(time_1) or _isna(time_2):
# either one was skipped
color = 'default'
mark = ' '
elif _is_result_better(time_2, time_1,
ss_2.get(benchmark), ss_1.get(benchmark),
factor, use_stats=use_stats):
color = 'green'
mark = '-'
improved = True
elif _is_result_better(time_1, time_2,
ss_1.get(benchmark), ss_2.get(benchmark),
factor, use_stats=use_stats):
color = 'red'
mark = '+'
worsened = True
else:
color = 'default'
mark = ' '

For significantly worse results, for example:

Change Before [0b43769a] <master~1> After [0b600d8f] Ratio Benchmark (Parameter)
+ 62.9±0.5ns 1.00±0s 1.59285e+07 benchmarks.time_myfunc

In most cases, ' ' means nothing terribly wrong has happened.

@HaoZeke HaoZeke changed the title "Change" column not populated when running asv compare QUERY: "Change" column not populated when running asv compare Aug 11, 2024
@philipc2
Copy link
Author

philipc2 commented Aug 11, 2024

@HaoZeke

That makes sense! #1421 will make it much more clear what the expected behavior is moving forward!

Thank you for the clarification!

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

Successfully merging a pull request may close this issue.

2 participants