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

I place a benchmark inside a TEST_CASE() and I don't see the results #2814

Closed
juandent opened this issue Feb 17, 2024 · 2 comments
Closed

I place a benchmark inside a TEST_CASE() and I don't see the results #2814

juandent opened this issue Feb 17, 2024 · 2 comments

Comments

@juandent
Copy link

I place this code:

TEST_CASE("Benchmark")
{
	BENCHMARK("simple") {
		return long_computation();
	};
}

I don't get any display in the console -- actually there is no console, why??

I am working in VS2022 v 17.9.0 Community Edition....

I would expect to see timing results!!

  • OS: Windows 11 Pro
  • Compiler+version: VS2022 v17.9.0
  • Catch version: ? latest

Additional context
I am using a VS2022 addon called Resharper C++
I chose the unit test "Benchmark" from Resharper C++ Unit Test Sessions

@horenmar
Copy link
Member

Sounds like issue with Resharper, try running the binary outside of VS.

@juandent
Copy link
Author

juandent commented Feb 18, 2024 via email

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