.NET performance tuning
Profiles and tunes C# apps to cut allocations, GC pauses and lock contention, so your .NET code runs faster.
Claude's review
8/10 Specific .NET profiling and tuning workflow with real commands and a symptom to counter table, though dated knobs are warned about.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
High-performance .NET guidance for writing and tuning C# apps and benchmarks (BenchmarkDotNet, ASP.NET, challenges). Use when asked to make .NET code faster, reduce allocations or GC overhead, fix lock contention or thread pool starvation, inspect JIT codegen, profile apps, or tune runtime/NativeAOT settings.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: blazing-fast-dotnet
description: High-performance .NET guidance for writing and tuning C# apps and benchmarks (BenchmarkDotNet, ASP.NET, challenges). Use when asked to make .NET code faster, reduce allocations or GC overhead, fix lock contention or thread pool starvation, inspect JIT codegen, profile apps, or tune runtime/NativeAOT settings.
---
# Blazing Fast .NET Performance
> [!WARNING]
> Much of the advice here might not age well: as .NET evolves, old hacks and custom knobs may become obsolete or even detrimental. Apply only after careful consideration and testing. Revisit periodically to ensure continued relevance.
This skill focuses on optimizing .NET applications for maximum performance, providing tips, techniques, and best practices to achieve blazing-fast execution times. It targets .NET 10.0 and 11.0. Older versions have not been tested.
**Contents**
- [Profiling and Performance Analysis](#profiling-and-performance-analysis)
- [dotnet-counters](#dotnet-counters)
- [dotnet-trace](#dotnet-trace)
- [Low-level profiling with Linux `perf`](#low-level-profiling-with-linux-perf)
- [Popular low-level problems](#popular-low-level-problems)
- [Inspecting JIT codegen](#inspecting-jit-codegen)
- [Best practices for high-performance C# code](#best-practices-for-high-performance-c-code)
- [Quick tips](#quick-tips)
- [Strings and globalization](#strings-and-globalization)
- [Thread pool starvation](#thread-pool-starvation)
- [Contention on shared state](#contention-on-shared-state)
- [False sharing](#false-sharing)
- [Safe vectorization (SIMD or SWAR)](#safe-vectorization-simd-or-swar)
- [Generic specialization via static abstract members](#generic-specialization-via-static-abstract-members)
- [ASP.NET Core](#aspnet-core)
- [Hosting and logging](#hosting-and-logging)
- [JSON and response writing](#json-and-response-writing)
- [Routing and middleware](#routing-and-middleware)
- [Kestrel socket transport](#kestrel-socket-transport)
- [Beyond benchmarks](#beyond-benchmarks)
- [Magic knobs to Tune .NET Performance](#magic-knobs-to-tune-net-performance)
- [NativeAOT-specific tuning](#nativeaot-specific-tuning)
- [General notes](#general-notes)
# Profiling and Performance Analysis
...From managedcode's repository, MIT licence.
Related skills
-
Checked
Kotlin Toolchain CLI
Builds, tests and packages Kotlin projects with the new JetBrains Kotlin Toolchain CLI, formerly called Amper.
7/101 credit -
Checked
Rust best practices
Writes and reviews idiomatic, maintainable Rust code and runs a checklist before handing it back to you.
7/101 credit -
Checked
Port code to Rust
Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.
9/101 credit -
Checked
Rust code review
Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.
8/101 credit -
Checked
Java Debugging Guide
Finds the cause of Java bugs and failing tests, and attaches a debugger safely in Maven, Gradle, Spring or Docker.
7/101 credit -
Checked
Multi axis code review
Reviews a diff for correctness, design, tests and security with severity labels, so only solid code merges.
8/101 credit