performance
.NET Benchmarking and BenchmarkDotNet Articles, Tutorials & News
.NET Benchmarking and BenchmarkDotNet articles, tutorials, and news from the DotNetNews archive.
82 articles Updated
.NET benchmarking is the focus of this topic page. .NET Benchmarking and BenchmarkDotNet is how .NET teams reason about runtime cost, startup, and throughput once the feature work is done. Intermediate and senior .NET developers use this hub to scan practical writing without treating every link as an endorsement.
Recurring subtopics in recent issues include .NET benchmarking, BenchmarkDotNet, C# benchmarks, and performance benchmarks .NET. Those themes are drawn from titles and excerpts in the newest archive entries for this tag, not from a marketing outline.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for .NET Benchmarking and BenchmarkDotNet; the archive list is chronological and larger. Secondary angles such as .NET benchmarking and BenchmarkDotNet appear when the archive actually covered them. Nearby reading often overlaps with .NET Performance and Optimization and .NET Profiling and Diagnostics.
Each card points at the original publisher URL and the DotNetNews issue that carried it, so you can read the article in context or jump straight to the source.
Start here
Editor picks for Benchmarking
-
Bulk Operations in EF Core 10 - Benchmarking Insert, Update, and Delete Strategies
codewithmukesh Issue #490
Benchmarks with decision guidance are far more useful than generic EF Core advice, especially for bulk data workloads.
-
Bulk Operations in EF Core 10 - Benchmarking Insert, Update, and Delete Strategies
codewithmukesh Issue #419
EF Core bulk operation benchmarks are the kind of evidence-based article teams should bookmark.
-
How to Write the Fastest Code with BenchmarkDotNet in C# in the AI Era
Medium Issue #495
A welcome emphasis on BenchmarkDotNet and profiling discipline, especially when AI-generated optimizations need verification.
-
Database Performance: Making Entity Framework Queries Faster
dotNetTips.com Issue #484
Compiled queries are worth revisiting if you have hot paths with repeated shapes and measurable EF overhead.
-
.NET 11 vs .NET 10: We Benchmarked Both on a Real Production App (Should You Upgrade?)
Medium Issue #478
We run Mattrx on .NET 10 (the current LTS) in production, and we put .NET 11 previews through the same benchmark harness on the same….
-
Boost Your .NET Projects: Copilot, Benchmarks, and the Truth About Faster Code
dotNetTips.com Issue #477
A healthy counterweight to AI hype: benchmark the suggestions, keep the wins, and discard the bad advice.
-
IAsyncEnumerable vs IEnumerable in C#: Performance and Use Cases
C# Corner Issue #472
IAsyncEnumerable shines for streaming large datasets; IEnumerable forces everything into memory first.
-
Silly sorting algorithms in C#
Medium Issue #466
Not every article has to be serious. Sometimes silly algorithms are just a fun way to revisit fundamentals and compare implementations.
Archive
Page 1 of 4
Newest first
-
GitHub Copilot and .NET Performance: Benchmark Every Optimization
dotNetTips.com - David (dotNetDave) McCarter Issue #554
GitHub Copilot offers optimization suggestions but testing their effectiveness requires careful engineering. While some improvements may seem beneficial, they can complicate code or slow performance. ...
-
I benchmarked my .NET MCP server on Polly. It broke six ways.
Medium - Ahmed Mustafa Issue #552
What an AI coding agent actually needs from a C# solution, and what changed once I measured instead of guessing.
-
.NET 11 Runtime Async: Faster Layers, Slower Single Calls
Medium - Tolga YILDIZ Issue #551
Two separate benchmark families, verified compiler activation, and the limits of cleaner stack traces in RC1.
-
Ultimate Guide to Handling 1 Million Requests Per Second: Engineering at the Scale of Giants
Medium - Dhananjay Patil Issue #550
A Deep Dive into CPU Utilization, Multithreading, Clustering, Load Testing, Databases, Redis, C++, Network Optimization and High-Scale…
-
Your work might not need the smartest model
Microsoft Developer Issue #544
The smartest model can cost five times more and deliver the same result, or even a worse one. See how evaluating your own work helps you get more value from your agent budget. The post Your work might...
-
Microsoft.Extensions.AI Failover: Benchmarking Multi-Provider AI Recovery
C# Corner Issue #544
Learn how to benchmark Microsoft.Extensions.AI failover across multiple AI providers, measuring recovery time, latency, reliability, retries, and operational cost.
-
Microsoft Foundry Hosted Agents: Benchmarking Deployment Overhead for .NET Agents
C# Corner Issue #543
Benchmark Microsoft Foundry Hosted Agents for .NET by measuring deployment time, startup overhead, resource usage, and the operational cost of hosted AI agents.
-
Filtering EF Core by a Large List: The 2,100 Parameter Wall
codewithmukesh Issue #540
EF Core 10 changed how Contains sends a list to SQL Server. Here is the real parameter ceiling, what happens when you cross it, and benchmarks for every fix.
-
Benchmarking AI-Generated Unit Tests Against Human-Written Tests
C# Corner Issue #540
Learn how to benchmark AI-generated unit tests against human-written tests using code coverage, mutation scores, defect detection, false positives, readability, and maintainability.
-
.NET 11 Blazor WebAssembly: Benchmarking Smaller Apps and Startup Performance
C# Corner Issue #533
Benchmark .NET 11 Blazor WebAssembly applications to measure startup time, download size, memory usage, and performance improvements in smaller apps.
-
.NET MAUI CoreCLR Migration: Benchmarking Startup and Memory on Android
C# Corner Issue #533
Learn how the .NET MAUI CoreCLR migration affects Android applications by benchmarking startup time, memory usage, runtime performance, and application behavior.
-
.NET 11 ZIP Password Support: Benchmarking Encrypted Archive Performance
C# Corner Issue #533
Benchmark encrypted ZIP archive performance in .NET 11 by measuring CPU usage, memory consumption, processing time, archive size, and throughput.
-
.NET 11 Generic Complex Numbers: Benchmarking Complex for Scientific Workloads
C# Corner Issue #530
Benchmark generic complex numbers in .NET 11 using Complex across scientific workloads, measuring numerical performance, allocations, and execution time.
-
C# 15 Union Types in .NET 11: Benchmarking Pattern Matching and Allocation Costs
C# Corner Issue #530
Benchmark C# 15 union types in .NET 11 by comparing pattern matching performance, memory allocations, and execution costs against traditional C# approaches.
-
Benchmarking .NET Worker Services Under CPU and Memory Pressure
C# Corner Issue #529
Benchmark .NET Worker Services under CPU and memory pressure by measuring throughput, queue backlogs, garbage collection, latency, resource usage, and application stability.
-
Benchmarking Redis Serialization Formats for High-Throughput .NET APIs
C# Corner Issue #529
Benchmark Redis serialization formats for high-throughput .NET APIs by comparing JSON, MessagePack, payload size, latency, memory allocations, throughput, and performance.
-
PostgreSQL 19 Beta: Benchmarking JSONB Workloads from .NET APIs
C# Corner Issue #529
Benchmark PostgreSQL 19 Beta JSONB workloads from .NET APIs and evaluate query performance, indexing strategies, EF Core behavior, and database scalability.
-
Benchmarking Redis Connection Multiplexing for High-Throughput .NET APIs
C# Corner Issue #529
Benchmark Redis connection multiplexing in high-throughput .NET APIs by measuring throughput, latency, connection usage, CPU consumption, and scalability under load.
-
My benchmark said my library was 2x faster. It was not.
Medium Issue #529
Mapsicle 1.3.0 is on NuGet. It fixes seven defects, two of which corrupted data silently. But the change I want to write about is the one…
-
PostgreSQL 19 Beta: Benchmarking JSONB Indexes with EF Core
C# Corner Issue #528
Benchmark PostgreSQL 19 Beta JSONB indexes with EF Core by measuring query performance, indexing strategies, execution plans, storage, and application response times.
-
Benchmarking Semantic Routing vs Failover Routing in microsoft.Extensions.AI
C# Corner Issue #527
Benchmark semantic routing and failover routing in Microsoft.Extensions.AI to compare model selection, reliability, latency, cost, and AI workload performance.
-
Microsoft.Extensions.AI Routing: Measuring Wrong-Model Selection Costs
C# Corner Issue #527
Learn how incorrect AI model routing affects cost, latency, response quality, and reliability using Microsoft.Extensions.AI routing capabilities and practical benchmarks.
-
Benchmarking PostgreSQL 19 Beta Planner Changes with EF Core
C# Corner Issue #527
Benchmark PostgreSQL 19 Beta query planner changes with EF Core using realistic workloads, execution plans, query latency, throughput, and database performance metrics.
-
Benchmarking .NET 11 HTTP Compression for Large JSON APIs
C# Corner Issue #526
Benchmark .NET 11 HTTP compression for large JSON APIs by measuring response size, bandwidth savings, CPU usage, latency, throughput, and compression efficiency across realistic workloads.
-
Benchmarking Semantic Routing vs Static Model Selection in .NET
C# Corner Issue #525
Compare semantic AI routing with static model selection in .NET by benchmarking latency, cost, routing accuracy, complexity, and overall application performance.