performance
.NET Benchmarking and BenchmarkDotNet Articles, Tutorials & News
.NET Benchmarking and BenchmarkDotNet articles, tutorials, and news from the DotNetNews archive.
78 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.com 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.com 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
neuecc.medium.com 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.com 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-sharpcorner.com Issue #472
IAsyncEnumerable shines for streaming large datasets; IEnumerable forces everything into memory first.
-
Silly sorting algorithms in C#
medium.com 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
-
Your work might not need the smartest model
developer.microsoft.com 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-sharpcorner.com 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-sharpcorner.com 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.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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.
baryodev.medium.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com Issue #525
Compare semantic AI routing with static model selection in .NET by benchmarking latency, cost, routing accuracy, complexity, and overall application performance.
-
Benchmarking HTTP Compression Algorithms for ASP.NET Core APIs
c-sharpcorner.com Issue #523
Compare HTTP compression algorithms in ASP.NET Core APIs using real-world benchmarks for response size, CPU consumption, latency, throughput, and network efficiency.
-
Benchmarking PostgreSQL 18 AIO with Real EF Core Workloads
c-sharpcorner.com Issue #523
Benchmark PostgreSQL 18 AIO with EF Core workloads. Measure impact on ASP.NET Core apps, storage I/O, and query performance.
-
Benchmarking C# 15 Union Types in Real Applications
c-sharpcorner.com Issue #521
Benchmark C# 15 union types in real apps. Explore performance, allocations, boxing, and compare with interfaces for production readiness.
-
Benchmarking HTTP Request Compression in .NET 11
c-sharpcorner.com Issue #521
Explore HTTP request compression in .NET 11 through practical benchmarks measuring bandwidth usage, CPU overhead, latency, and throughput across different compression scenarios.