Top 23 C# Performance Projects
Powerful .NET library for benchmarkingProject mention: Customized For Loop runs orders of magnitudes faster than default? | reddit.com/r/csharp | 2022-01-01
Please don't reinvent the wheel, use BenchmarkDotNet before you start worrying about things like cache locality.
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and UnityProject mention: High performance ECS framework for C# without Unity? | reddit.com/r/gamedev | 2021-09-05
Github documentation for entitias looks like it is still good https://github.com/sschmid/Entitas-CSharp/wiki
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
Project mention: EnTT: Gaming meets modern C++ 3.9 | news.ycombinator.com | 2021-12-21
So you get cache locality as you're running through your transforms.
Now imagine if instead of space invaders we're trying to model say blades of grass. Suddenly we go from a very cache unfriendly method to something that's cache friendly, branch prediction friendly, and easy to parallelize.
If you want to experiment with it Unity has some great examples under their new DOTS system
APIs can make data oriented more ergonomic than my contrived example implies, but it's still not nearly as intuitive as ECS imo.
To me data oriented subsystems are fine, but not as a core concept for your game's architecture.
PerfView is a CPU and memory performance-analysis toolProject mention: High LSASS CPU usage on Domain Controller | reddit.com/r/sysadmin | 2021-11-04
Save off the ETL and review it in a tool like PerfView
C++ Profiler For GamesProject mention: Optick: C++ Profiler for Games | news.ycombinator.com | 2021-11-03
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.Project mention: Top 13 open source APM tools in 2021 | dev.to | 2021-07-28
🌐 Website 💻 GitHub
A .NET library to run C# code in parallel on the GPU through DX12 and dynamically generated HLSL compute shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀Project mention: What project are you currently working on? | reddit.com/r/csharp | 2022-01-09
Outside of work, I spend most of my coding time working on ComputeSharp. It's a library that allows developers to run C# code on the GPU by automatically creating and compiling HLSL shaders (at build time or at runtime), and dispatching them using DirectX 12 API. It multi-targets .NET Standard 2.0 and .NET 6, so it pretty much runs anywhere on Windows (ie. from .NET Framework to UWP to .NET 6, and more), and I also have packages for UWP and WinUI 3 with built-in XAML controls to render shaders into an app. There's also a sample app in the Store! 😄
OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solutionProject mention: Networking lib/framework for multiplayer servers ? | reddit.com/r/csharp | 2021-10-03
An easy to use thread safe in-memory caching service with a simple developer friendly API for c#Project mention: Parallel.ForEachAsync Deep Dive | reddit.com/r/dotnet | 2021-12-13
I wasn't aware of this LazyCache nuget, it would requires a bit of a code rewrite for me to use directly, but it seems nice. The only issue is that I see their AsyncLazy implementation does not do what the stackoverflow post mention.
High performance, low level networking APIs for building custom servers and clients.Project mention: Sources for TCPClient and sockets programming | reddit.com/r/dotnet | 2021-12-18
Sockets are best handled by a dedicated library. Another good tcp/socket library is Project Bedrock. It runs on top of kestrel, is very fast and stable.
Fast compiler of C# Expression tree to the delegateProject mention: Using C# Expression Trees in the Real World - Spencer Schneidenbach | reddit.com/r/dotnet | 2021-03-14
If you're using a lot of expression trees, FastExpressionCompiler is awesome.
Decompilation Tools and High Productivity UtilitiesProject mention: PowerUp: Decompilation Tools and High Productivity Utilities | news.ycombinator.com | 2021-11-19
High performance LINQ implementation with minimal heap allocations. Supports enumerables, async enumerables, arrays and Span<T>.Project mention: Like Regular LINQ, but Faster and Without Allocations: Is It Possible? | reddit.com/r/dotnet | 2022-01-04
SQL query stress simulator created by Adam Machanic http://dataeducation.com/sqlquerystress-the-source-code/Project mention: Over thinking update with rowlock | reddit.com/r/MSSQL | 2021-10-19
You could try SqlQueryStress to mock out your database interaction and then increase the threads to see how it handles and then use SP_WhoIsActive to see what you are waiting on while that test is running.
Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking appProject mention: If the US sanctions weren't there, could Hisilicon produce similar Soc's like Apple M1, A1x series ? | reddit.com/r/AndroidQuestions | 2021-12-26
Link - Benchmark
Zero Allocation Writer/Reader Parser for .NET Core
FusionCache is an easy to use, high performance and robust cache with an optional distributed 2nd layer and some advanced features.
Easy to use SIMD accelerated Array and Span methodsProject mention: Generic math SIMD Span and Array methods | reddit.com/r/csharp | 2021-08-10
Link to the project: Click Me
: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.
Significantly decreases the time it takes to (re)start and leave songs in Beat SaberProject mention: Beat Saber is the only game that makes me dread every update | reddit.com/r/beatsaber | 2021-05-27
Unleash The Ultimate Performance from Age of Empires 2 DefinitiveProject mention: How can my dad get a normal framerate in 1v1 games? | reddit.com/r/aoe2 | 2021-10-05
You can disable every graphic setting especially 4k graphics if you use them and if that's not enough SeiseiDE can tweak more stuff
Get an in-depth overview of the most commonly needed functionality of the Unity Object Pooling API introduced in the 2021 version of the Unity Editor.Project mention: Unity 2021 Object Pool API - What is Object Pooling and how to use the new API! Unity finally got native Object Pooling support and it's pretty good, but not perfect | reddit.com/r/gamedev | 2021-10-28
C# Benchmarks for a better understanding of performance costProject mention: Why are UDP sockets faster in Windows safe mode? | reddit.com/r/dotnet | 2021-04-14
I don't think that is the case. I attached all my benchmark results in the relase section: https://github.com/JohannesDeml/MicroBenchmarksDotNet/releases/tag/1.0.0
C# Performance related posts
If the US sanctions weren't there, could Hisilicon produce similar Soc's like Apple M1, A1x series ?
1 project | reddit.com/r/AndroidQuestions | 26 Dec 2021
Sources for TCPClient and sockets programming
3 projects | reddit.com/r/dotnet | 18 Dec 2021
.NET 6 vs. .NET 5: up to 40% speedup
15 projects | news.ycombinator.com | 21 Nov 2021
PowerUp: Decompilation Tools and High Productivity Utilities
1 project | news.ycombinator.com | 19 Nov 2021
High LSASS CPU usage on Domain Controller
1 project | reddit.com/r/sysadmin | 4 Nov 2021
PowerUp: Decompilation Tools and High Productivity Utilities
1 project | reddit.com/r/CKsTechNews | 3 Nov 2021
C#10 e ASP.NET 6, oque esperar dessa dupla?
2 projects | dev.to | 22 Oct 2021
What are some of the best open-source Performance projects in C#? This list will help you:
Are you hiring? Post a new remote job listing for free.