-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
New to BenchmarkDotNet, Need help #1178
Comments
Hey @AlenToma! Could you please share the full source code of your project (including csproj and sln files)? It seems that something is wrong with your project layout or project names. |
Yes offcourse, you could get it on github. under source there is Benchmark.tests that i created. |
@AndreyAkinshin any new news? |
Hello @AlenToma In your log I can find following info:
BenchmarkDotNet generates some boilerplate code that helps to avoid common benchmarking pitfalls. To allow for that, we need to generate and build a new project. This project needs to reference your project with benchmarks. In your case, BDN looks for a project file called Have you customized the Assembly name for this project? |
Yes I did and thats why i removed this project and created a new one. The new project gave me the same errors. about missing the dll. after some research i found ou that the problem is releated to So i ran this code instead
And now the table calculation, is working fine now and also showing some result. There is still some errors
if you look at the error it says missing dll in path I navigated to the path and found the dll, so i guess that the error is not releated to the message. I really think that the error is releated to sln file, we should somehow be able to input the sln file location. |
You need to remove the following line from your code: [ClrJob(baseline: true), CoreJob, CoreRtJob] these attributes tell BDN to run the benchmark for .NET, Core and CoreRT. @AndreyAkinshin I think that we should remove Job attributes from Sample from the main page, too many new users run into issues with it. [ClrJob(baseline: true), CoreJob, MonoJob, CoreRtJob] |
Well thanks that was it, i guess i should have, read the documentation more carefully :) just wondering, if my or should i create a test project for each framework? |
@AlenToma I have forked your project, got it working and send a PR with fixes and explanation: AlenToma/FastDeepCloner#7 I am going to close this issue, please feel free to reopen it if somehting does not work. |
Hi, so im new to BenchmarkDotNet and i really loved it when i saw it youtube.
So i created a test project with the name Benchmarklb to test my library, But i get a strange result and many exception that i really dont understand why those happen.
Here is my class that im testing
And i simple start my application with
the logs im getting
even the calculation is NA
Any idee what im doing wrong ? im building it in release mode
The text was updated successfully, but these errors were encountered: