Which of these two is faster?

Read more here:
https://bgh.st/0p4n56

#CSharp #DotNet #DotNetCore #BenchmarkDotNet

We all know that we're not supposed to use reflection in performance critical paths...

Read more here:
https://www.devleader.ca/2024/03/17/constructorinfo-how-to-make-reflection-in-dotnet-faster-for-instantiation/

#CSharp #DotNet #DotNetCore #BenchmarkDotNet

We all know that we're not supposed to use reflection in performance critical paths...

Read more here:
https://www.devleader.ca/2024/03/17/constructorinfo-how-to-make-reflection-in-dotnet-faster-for-instantiation/

#CSharp #DotNet #DotNetCore #BenchmarkDotNet

【C#】同じ機能、違う書き方 - パフォーマンスで選ぶべきコードはどっち? - Qiita

はじめに プログラムを速くする――と聞くと、「アルゴリズムを大改造する」「マルチスレッド化する」といった大がかりな施策を思い浮かべがちです。 しかし実際には、日常的に書いている ちょっとしたコードの選択 が、そのままアプリ全体の体感速度を左右しているケースも少なくありませ...

Qiita
Validate Code Improvements With BenchmarkDotNet - Improve & Repeat

None

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/

#CSharp #DotNet #DotNetCore #BenchmarkDotNet

ConstructorInfo – How To Make Reflection in DotNet Faster for Instantiation

Using reflection in DotNet to create object instances? See the performance of ConstructorInfo compared to other methods provided by reflection in DotNet!

Dev Leader
Activator.CreateInstance vs Type.InvokeMember – A Clear Winner?

Let's compare Activator.CreateInstance vs Type.InvokeMember! Check out this head to head battle for ways to create instances using reflection in dotnet!

Dev Leader

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

performance/src/tools/ResultsComparer/README.md at main · dotnet/performance

This repo contains benchmarks used for testing the performance of all .NET Runtimes - dotnet/performance

GitHub