joelverhagen / NCsvPerf

A test bench for various .NET CSV parsing libraries
https://www.joelverhagen.com/blog/2020/12/fastest-net-csv-parsers
MIT License
69 stars 14 forks source link

Can not run benchmark after PR #32 #35

Closed leandromoh closed 3 years ago

leandromoh commented 3 years ago

When I try to run benchmark on main branch the following error occurs:

// Validating benchmarks:
Assembly NCsvPerf which defines benchmarks references non-optimized TxtCsvHelper
  If you own this dependency, please, build it in RELEASE.
  If you don't, you can disable this policy by using 'config.WithOptions(ConfigOptions.DisableOptimizationsValidator)'.

Probrably the lib added in #32 was built using DEBUG mode instead of RELEASE.

@camdrudge, take a look at this: https://garcia.in/posts/2021/pitfalls-of-unoptimized-nuget-packages/ the same happened to me in my first releases;

joelverhagen commented 3 years ago

Well, it looks like I need a unit test for this 😃.

Looks like @camdrudge just need to use dotnet pack -c Release to produce the .nupkg.

I have repackaged other libraries to workaround this but ideally you can compile the Release version since it will help your package consumers too. Free perf! 😄

camdrudge commented 3 years ago

Update my package and try again please!

On Sun, Jul 11, 2021 at 6:59 PM Joel Verhagen @.***> wrote:

Well, it looks like I need a unit test for this 😃.

Looks like @camdrudge https://github.com/camdrudge just need to use dotnet pack -c Release to produce the .nupkg.

I have repackaged other libraries to workaround this but ideally you can compile the Release version since it will help your package consumers too. Free perf! 😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joelverhagen/NCsvPerf/issues/35#issuecomment-877913689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7PX52G7KVQ7AKOYUQLKUDTXJEBPANCNFSM5AFQ4FUA .

joelverhagen commented 3 years ago

Thanks Cameron! I added a test so we can catch this next time.