Powerful .NET library for benchmarking. Maintained by @andrey_akinshin

Joined April 2023
🎥In our latest Betatalks, Christian and Jelle show how to benchmark .NET code with BenchmarkDotNet and why small choices like string concatenation vs. StringBuilder can make a big difference in performance and memory. #BenchmarkDotNet #DotNetCode youtu.be/VlbENR5U0Tg
1
131
BenchmarkDotNet retweeted
Duende Software's latest Open Source Sponsorship goes to #BenchmarkDotNet! 🚀 It's a great project to help analyze (and maintain) performance of #dotnet code. Check out the full post for details on the project: duende.link/o55bmd
1
1
127
BenchmarkDotNet retweeted
After a long wait, I've finally published the sixth part in my "Writing a .NET Garbage Collector in C#" series. Today, we start implementing mark and sweep. minidump.net/writing-a-net-g…
3
27
1
123
14,724
BenchmarkDotNet retweeted
We're proud to announce that Duende Software's latest Open Source Sponsorship goes to #BenchmarkDotNet! 🚀 Check out the full post for details on the project: duende.link/o55bmd #dotnet
1
1
6
1,528
BenchmarkDotNet retweeted
🎉 New BenchmarkDotNet sponsor
We're proud to announce that Duende Software's latest Open Source Sponsorship goes to #BenchmarkDotNet! 🚀 Check out the full post for details on the project: duende.link/o55bmd #dotnet
3
18
1,342
BenchmarkDotNet retweeted
Jody Donetti@jodydonettiJan 27
Shout out to @BenchmarkDotNet for no other reason than it's such an insanely good and robust piece of software. There's a before and after BDN: without it, we would be in a very different place. Kudos to @andrey_akinshin for creating and maintaining it. github.com/dotnet/BenchmarkD…
2
7
447
BenchmarkDotNet retweeted
One of my favorite things about #dotnet is still @BenchmarkDotNet. In my new NuGet package, I have some very optimized things that would usually be "simple" - if you're gonna put my code in your code, I want it to be as fast & lightweight as possible!
1
1
4
508
You can do some serious EF Core perf testing with @BenchmarkDotNet - want to see real tradeoffs of bulk inserts vs regular SaveChanges()? That’s an easy benchmark, here’s how - briangetsbinary.com/software…
1
71
BenchmarkDotNet project now available in Visual Studio 2026 #dotnet
4
9
1
95
5,779
Looking like Entity Framework Core and .SqlQuery is my new go-to for data access. Faster performance than Dapper (according to my unofficial benchmark) and way easier. Just a hair slower than raw ADONET access. DbContext is minimal.
8
10
116
6,421
BenchmarkDotNet retweeted
✨ NOW on .NET Conf 2025 ✨ Performance Improvements in .NET 10 10:30 AM - 11:00 AM PST Join us LIVE ➡️ msft.it/6012tHotm Follow the conversation: #dotNETConf
6
49
4,864
Benchmark: reading spreadsheets from C# ClosedXML vs EPPlus (FOSS vs commercial) Don't read into this too much. LINQPad makes it stupid easy to benchmark code using BenchmarkDotNet. Source spreadsheet has 1000 rows and 2 columns. Column A: int Column B: string ClosedXML ~29% faster in the benchmark And from my perspective, I think ClosedXML is easier to use.
4
11
88
6,999
.NET 10 was just released yesterday, although @BenchmarkDotNet has been ready for it since January.
1
5
74
4,120
BenchmarkDotNet retweeted
Does MoreLINQ Zip Outperform LINQ Zip? Let's Benchmark Them! A duel between two methods for zipping collections in CSharp! But a challenger approaches: Our very own naive implementation of LINQ Zip! In this video, I'll walk through the BenchmarkDotNet benchmarks for comparing the LINQ zip method and MoreLINQ ZipShortest and ZipLongest methods. We'll even see how my naive implementation does against these! Buckle up and get ready to see how optimized my code is! Spoiler Alert: It's not. More Spoiler Alert: You'll still be surprised. Watch here: youtube.com/watch?v=--uAbRgF…
1
3
532
Replying to @quicktricks_dev
Benchmark your specific scenario. A BenchmarkDotnet example test rig is below. #dotnet
1
4
534
Special LINQPad privileges for @BenchmarkDotNet
Replying to @andrey_akinshin
Benchmark.NET is an essential .NET tool. You can activate it from within LINQPad with a single key gesture. It's one of only two libraries with hotkey privileges!
1
24
3,523
GitHub Copilot is gradually becoming useful in practice.
2
1
54
5,648
Claude Code now assists me with creating new Pragmastat algorithms and implementing them in 7 languages. Understanding the algorithms is optional: I validate correctness and performance with a comprehensive suite of automatically generated tests.
2
1
11
1,204
BenchmarkDotNet retweeted
Replying to @andrey_akinshin
Well you guys have done a great job with BenchmarkDotNet... even from your laptop. 😁
1
1
274