Skip to content

Fix issue with benchmark unit test when compiling with optimizations.#6265

Merged
dlang-bot merged 1 commit intodlang:masterfrom
jmdavis:benchmark_race
Mar 11, 2018
Merged

Fix issue with benchmark unit test when compiling with optimizations.#6265
dlang-bot merged 1 commit intodlang:masterfrom
jmdavis:benchmark_race

Conversation

@jmdavis
Copy link
Copy Markdown
Member

@jmdavis jmdavis commented Mar 11, 2018

Apparently, with gdc and optimizations turned on, the test in question
is optimized enough that the first function being benchmarked sometimes
takes no time at all (since the function being benchmarked does
nothing), causing the test to fail. This fixes that.

Apparently, with gdc and optimizations turned on, the test in question
is optimized enough that the first function being benchmarked sometimes
takes no time at all (since the function being benchmarked does
nothing), causing the test to fail. This fixes that.
@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request, @jmdavis!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Copy link
Copy Markdown
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yet another reason for disabling optimization for the benchmarked functions (#5416)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants