【C#】同じ機能、違う書き方 - パフォーマンスで選ぶべきコードはどっち?
https://qiita.com/Sakai_path/items/c51030f1291839025263?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
Validate Code Improvements With #BenchmarkDotNet - #dotNet
https://improveandrepeat.com/2025/03/validate-code-improvements-with-benchmarkdotnet/
We all know that we're not supposed to use reflection in performance critical paths...
Read more in this post:
https://www.devleader.ca/2024/03/17/constructorinfo-how-to-make-reflection-in-dotnet-faster-for-instantiation/
Which of these two is faster?
Read more in this post:
https://www.devleader.ca/2024/03/14/activator-createinstance-vs-type-invokemember-a-clear-winner/
TIL I can use the ResultComparer tool to prevent performance regression by integrating it into CI/CD in @danielmarbach’s talk on performance benchmarking at #NDCOslo. #BenchmarKDotNet #dotnet
https://github.com/dotnet/performance/blob/main/src/tools/ResultsComparer/README.md
We all know that we're not supposed to use reflection in performance critical paths...
Read more in this post:
https://www.devleader.ca/2024/03/17/constructorinfo-how-to-make-reflection-in-dotnet-faster-for-instantiation/
Which of these two is faster?
Read more in this post:
https://www.devleader.ca/2024/03/14/activator-createinstance-vs-type-invokemember-a-clear-winner/
@antaoalmada Thank you for writing and sharing this!
I was wondering how this is supposed to be integrated in a real-world project? Do I refactor my code to make these micro benchmarks possible on the actual code base or do I just experiment and then let go?
I think the Itinero route planner (https://github.com/itinero) can benefit greatly from using #BenchmarkDotnet I just don't know where to start and how...
I've written numerous articles on #performance within #dotnet, frequently incorporating benchmarks. I've authored a guide on utilizing #BenchmarkDotNet for benchmarking purposes. I hope this guide will assist you in understanding how to conduct performance assessments for your .NET projects. https://aalmada.github.io/posts/Measuring-dotnet-performance/
I've just noticed that #BenchmarkDotNet has a really nice title in the terminal that shows progress towards overall completion. Now I know how long I have to make my cup of tea!
@gaprogman have you seen #benchmarkdotnet? Benchmarking becomes real fun with it! Caution, it may cause addiction!
You should pass "nop delegate" as next and some stub for httpcontext for your middleware
The #BenchmarkDotNet library is now better with #JetBrains #dottrace
🔥Introducing the DotTraceDiagnoser – a powerful tool for deep-diving into benchmark performance snapshots.
Learn how to uncover the performance mysteries in your codebase here👉
https://jb.gg/dttrce-bnchmrk (post by @khalidabuhakmeh)
Episode 442 of FreeCodeSession is live!
I updated the original EFCore compiled query demo to be more precise and added some #BenchmarkDotNet tests to get a better look. Here are the results from BenchmarkDotNet
@davidebellone use #BenchmarkDotNet and see for yourself... Use IsNullOrWhitespace only if your really need it, not just as default everywhere!