InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises. Learn more →
Top 12 C# Benchmark Projects
-
Project mention: C#: Does Visual Studio 2022 offer a way to profile which function(s) are taking the most time during execution? | reddit.com/r/csharp | 2023-02-01
It's common to use Benchmark DotNet for "micro benchmarking" i.e. timing small isolated bits of code like it's a unit test.
-
Project mention: We wouldn’t even consider writing back-end code for a website CMS in anything other than C, and we certainly wouldn’t use any of the interpreted languages that have sprung up in the last couple of decades and positioned themselves as the de facto go-to standards for web development. | reddit.com/r/programmingcirclejerk | 2023-02-01
Compiler WTF??? Can't you just use xxd to turn a hexdump into a binary like a real programmer would do?!?
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
-
Project mention: Dependency Injection - Microsoft.Extensions.Hosting vs Microsoft.Extensions.DependencyInjection | reddit.com/r/dotnet | 2022-02-22
-
Project mention: Speed Comparisons: JavaScript vs Python vs C vs Rust | reddit.com/r/ProgrammerHumor | 2023-02-05
There is not "one real" benchmark. In the end, all you can do is test languages for a specific feature / purpose. You can see how many different suggestions people have here, and here (I think) you can see the difficulties of comparing languages. That site uses quite a lot of algorithms / problems with multiple inputs, single and multithreaded, with different optimization flags (where applicable) and so on paired with different languages, and it's a mess. Sometimes one language is on top, sometimes another. (I mean, python will very rarely beat pure C, but I wont rule out that someone already created an edge case just to refute exactly this point)
-
CrossPlatformDiskTest
Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking app
-
rust-zero-cost-abstractions
Testing out a Zero Cost Abstraction in Rust compared to similar approaches in C# and Java
Your "run-time" code with iterators vs with a hand made for loop tends to result in the same set of instructions. Often the iterator usage will also enable optimizations that make the loop faster.
* https://github.com/mike-barber/rust-zero-cost-abstractions
* https://carette.xyz/posts/zero_cost_abstraction/
* https://ruudvanasseldonk.com/2016/11/30/zero-cost-abstractio...
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
-
Unchase.FluentPerformanceMeter
:hammer: Make the exact performance measurements of the public methods for public classes using this NuGet Package with fluent interface. Requires .Net Standard 2.0+. It is an Open Source project under Apache-2.0 License.
-
Project mention: Trying to figure out secondary/other timings. Hynix MJR 2x 32GB | reddit.com/r/overclocking | 2023-01-29
Use this to benchmark https://github.com/FarisR99/IMLCGui
-
-
-
C# Benchmark related posts
- Speed Comparisons: JavaScript vs Python vs C vs Rust
- C#: Does Visual Studio 2022 offer a way to profile which function(s) are taking the most time during execution?
- Trying to figure out secondary/other timings. Hynix MJR 2x 32GB
- Which would be faster to update all values? 3 layer list, 2 layer array or 1 layer array?
- .Net 7 JSON Performance trap
- is there any performance difference between conversion from int to string of those two?
- Does it make sense to make everything a struct with a class wrapper?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 8 Feb 2023
Index
What are some of the best open-source Benchmark projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | BenchmarkDotNet | 8,662 |
2 | Primes | 1,959 |
3 | FastExpressionCompiler | 937 |
4 | IocPerformance | 820 |
5 | Programming-Language-Benchmarks | 343 |
6 | CrossPlatformDiskTest | 315 |
7 | rust-zero-cost-abstractions | 39 |
8 | Unchase.FluentPerformanceMeter | 36 |
9 | IMLCGui | 22 |
10 | BenchPlayground | 2 |
11 | MicroBenchmarksDotNet | 1 |
12 | AsyncAwaitBenchmark | 0 |