Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

fixture: SetUpBefore()/TearDownAfter() #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dsiroky
Copy link

@dsiroky dsiroky commented May 26, 2018

Some of my benchmarks need to load a huge amount of data and it takes very long time. Current SetUp() and even the constructor are executed before every run which makes those tests painfuly long.

The downside of this patch is that it is not fully backward compatible because it constructs the test instance only once for each BENCHMARK section.

I'd like to know your thoughts.

@nickbruun
Copy link
Owner

I definitely see the utility in this, but I will need to consider the implications. This might be a breaking change I'm willing to introduce. Let me mull it over next week when I have some time. I appreciate the work!

@nickbruun
Copy link
Owner

I haven't forgotten about this one. I'm head down in release mode right now, so it might be a minute before I get to it. I apologize.

@nickbruun
Copy link
Owner

Geez. I forgot all about this one. Can you please remove the use of std::unique_ptr as we do want backwards compatibility for older projects with C++98?

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

Successfully merging this pull request may close these issues.

2 participants