awesome-dot-net-performance
A curated list of awesome .NET Performance books, courses, trainings, conference talks, blogs and most inspiring open source contributors. Inspired by awesome-... stuff.
https://github.com/eric-erki/awesome-dot-net-performance
Last synced: 30 days ago
JSON representation
Article series
Benchmarking
- Micro-Benchmarking Done Wrong, And For The Wrong Reasons
- Benchmarking made easy
- Simple microbenchmarking in C#
- On ‘stackalloc’ Performance and The Large Object Heap
- Micro-Benchmarking Considered Harmful
- On Measuring Performance
- Microbenchmark Design Guidelines
- Acquiring high-resolution time stamps
Debugging performances series by Tess Ferrandez
- All .NET Debugging Demos: Hang, Crash, memory, and CPU
- High CPU in .NET app using a static Generic.Dictionary
- .NET Hang Case study: The danger of locking on strings
- First step in troubleshooting complex issues: Define and scope your issue properly
- Reader email: Need help troubleshooting perf/memory issues
- Debugging a classic ReaderWriterLock deadlock with SOSex.dll
- New commands in SOS for .NET 4.0 Part 1
- Show me the memory: Tool for visualizing virtual memory usage and GC heap usage.
- .NET Memory Leak reader email: Are you really “leaking” .net memory
- .NET Memory Leak: To dispose or not to dispose, that’s the 1 GB question
Investigations
- High-performance .NET by example: Filtering bot traffic
- RyuJIT and the never-ending ThreadAbortException
- 9 posts about how to build your own toolbox with ClrMD
- .NET Threadpool starvation, and how queuing makes it worse
- Get-process-name challenge on a Friday afternoon
JIT Optimizations
- RyuJIT Tutorial
- JIT Optimizations, Inlining, and Interface Method Dispatching (Part 1 of N)
- JIT Optimizations, Inlining, and Interface Method Dispatching (Part 2 of N)
- Aggressive Inlining in the CLR 4.5 JIT
- Some Notes on Using Machine Learning to Develop Inlining Heuristics
- The JIT does dead-code elimination in Debuggable code
- Do PDB Files Affect Performance?
- Hoisting in .NET Explained (part 1)
- Hoisting in .NET Examples (part 2)
- Jit Optimizations: Inlining (I)
- Jit Optimizations: Inlining (II)
- More on inlining…
- To Inline or not to Inline: That is the question
- Does the JIT take advantage of my CPU?
- What does the optimize switch do?
- JIT Optimizations
- Performance differences between debug and release builds
Memory
- GC Perf Infrastructure – Part 1
- GC Perf Infrastructure – Part 0
- The history of the GC configs
- Finalization implementation details
- A portable way to get GC events in process and no admin privilege with 10 lines of code (and ability to dynamically enable/disable events)
- Making CPU configuration better for GC on machines with > 64 CPUs
- Running with Server GC in a Small Container Scenario Part 1 – Hard Limit for the GC Heap
- Running with Server GC in a Small Container Scenario Part 0
- You Should Never See This Callstack in Production
- Middle Ground between Server and Workstation GC
- Pooling large arrays with ArrayPool
- Value Types vs Reference Types
- Span
Monitoring
- Performance Counters Hell
- Replace .NET performance counters by CLR event tracing
- Monitor Finalizers, contention and threads in your application
- In-process CLR event listeners with .NET Core 2.2
- Spying on .NET Garbage Collector with TraceEvent
- Grab ETW Session, Providers and Events
.NET Core 3.0 Intrinsics
- Hardware Intrinsics in .NET Core
- Exploring .NET Core platform intrinsics: Part 1 - Accelerating SHA-256 on ARMv8
- Exploring .NET Core platform intrinsics: Part 2 - Accelerating AES encryption on ARMv8
- Exploring .NET Core platform intrinsics: Part 3 - Viewing the code generated by the JIT
- Exploring .NET Core platform intrinsics: Part 4 - Alignment and pipelining
- .NET Core 3.0 Intrinsics in Real Life - 1/3
- .NET Core 3.0 Intrinsics in Real Life - 2/3
- .NET Core 3.0 Intrinsics in Real Life - 3/3
Performance Improvements in .NET Core
- Performance Improvements in .NET Core 3.0
- Performance Improvements in .NET Core 2.1
- Performance Improvements in .NET Core
Refs
- ref returns and locals
- ref returns are not pointers
- managed pointers
- Local variables cannot be returned by reference
- Safe to return rules for ref returns
- Why ref locals allow only a single binding?
Threading
Blogs
Books
- Pro .NET Performance: Optimize Your C# Applications
- Pro .NET Benchmarking: The Art of Performance Measurement
- CLR via C#
- Pro Asynchronous Programming with .NET
- Writing High-Performance .NET Code
- Advanced .NET Debugging
- Concurrent Programming on Windows
- .NET IL Assembler
- High-Performance Windows Store Apps
- Customizing the Microsoft® .NET Framework Common Language Runtime
- Under the Hood of .NET Memory Management
- Pro .NET Memory Management: For Better Code, Performance, and Scalability
Conference talks
- What the game industry taught me about performance
- Compiling and Running a PHP on .NET Core
- Ethereum performance in .NET Core
- To ORM or not to ORM
- Writing Allocation Free Code in C#
- Cliff diving into async in .NET Core and C# 8
- Performance Testing
- How Entity Framework translates LINQ all the way to SQL
- .NET Intrinsics in CoreCLR 3.0
- The .NET Garbage Collector
- .NET Performance Investigation
- Performance in the .NET Runtime
- Spanification
- JIT and AOT in the CLR - Chin Tsai (30.07.2019, JVM Language Summit)
- Powerful benchmarking in .NET
- What’s new for performance in .NET Core and ASP.NET Core 3.0
- Ref struct, ref readonly struct, ref returning, ref everything!
- Building responsive and scalable applications
- Make your custom .NET GC — "whys" and "hows"
- Extend the new WinDbg to build your own dream debugging tool
- Tuning a Runtime for Both Productivity and Performance - Chin Tsai (26.02.2019, QCon)
- Efficient Buffer Manipulation using C# 7.2's Span
- Building your own debugging toolbox with ClrMD
- Scratched metal
- PerfView: The Ultimate .NET Performance Tool
- Advanced .NET debugging techniques from a real world investigation
- Patterns for high-performance C#
- What's new for performance in .NET Core 2.0
- State of the .NET Performance
- Look Mommy, No GC!
- Squeezing the Hardware to Make Performance Juice
- Performance tuning Stack Overflow tags
- Multithreading Deep Dive
- Stack Overflow — It's all about performance!
- ETW — Monitor Anything, Anytime, Anywhere
- PerfView: Measure and Improve Your App's Performance For Free
- The C++ and CLR Memory Models
- ASP.NET Core Kestrel: Adventures in building a fast web server
- Performance Optimizations in the Wild
- The Vector in Your CPU: Exploiting SIMD for Superscalar Performance
- Making .NET applications faster
- Exceptional Exceptions in .NET
- The zen of async: Best practices for best performance
High Performance Libraries
Application Insights
- Spreads - "Series and Panels for Real-time and Exploratory Analysis of Data Streams", a library for fast time series incremental calculations + SIMD-optimized byte-shuffling/LZ4/Zstd compression using Blosc library.
- Nessos Streams - A lightweight F#/C# library for efficient functional-style pipelines on streams of data.
- Disruptor-Net - .NET port of LMAX Disruptor, a faster alternative to BlockingCollection.
- MPMCQueue.NET - Bounded multiple producers multiple consumers queue for .NET.
- ImTools - Immutable persistent collections and helpers designed for performance and simplicity of use.
-
FastExpressionCompiler
- Fast Expression Trees compiler to delegate to compensate for slow
Expression.Compile(). - DryIoc - For the past years a fastest Dependency Injection library without sacrificing on functionality.
- SimpleInjector - Fast Dependency Injection library that promotes best practice to steer developers towards the pit of success.
- SIMD Array - SIMD and other Performance enhanced Array operations for F#.
- markdig - Markdig is a fast, powerful, CommonMark compliant, extensible Markdown processor for .NET.
- MathNet - Math.NET is an opensource initiative to build and maintain toolkits covering fundamental mathematics, targetting advanced but also every day needs of .Net developers.
- NativeInterop - Generic pointers and native 64-bit arrays for .NET.
- Wire - A high performance polymorphic serializer for the .NET framework.
Inspiring Open Source Contributors
On-Site Trainings
Performance tools
Application Insights
- App Metrics - App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application and reports it's health. See the docs for more details.
Benchmarking
- NBench - Cross-platform performance benchmarking and testing framework for .NET applications.
- BenchmarkDotNet - Powerful .NET library for benchmarking.
Profiling
- MiniProfiler - Free profiling tool for .NET applications with Entity Framework and ASP.Net integration (Core supported for both versions)
- dotTrace - Paid profiler for .NET applications from the JetBrains team, included in the Resharper Ultimate package
- Unchase.FluentPerformanceMeter - Free open-source and cross-platform .Net Standard 2.0 library that is designed for the method’s performance measurement
- Prefix - Free lightweight profiler for ASP.NET apps shows everything your code is doing across 30+ common libraries
Upcoming conferences
- Dotnetos - .NET Performance World - Two-day conference dedicated solely to .NET performance! Both international and Polish speakers (all sessions in English). Chance to meet well-known people from .NET performance area in person. (01-02 October 2020, Warsaw)
Video Courses
- Making .NET Applications Faster
- Making .NET Applications Even Faster
- Defrag Tools - Perf View
- High Performance Coding with .NET Core and C#
- Using Threads Effectively to Build Scalable, Responsive, and Fast .NET Applications and Components
- Measuring .NET Performance
- part 1 - Tools/Defrag-Tools-34-CLR-GC-Part-2) part 3 and part 4 with Maoni Stephens
- Mastering .NET Performance Tuning
- PerfView Tutorial