C# Performance

Open-source C# projects categorized as Performance | Edit details
Related topics: #.NET #C# #dotnet-core #Benchmark #C#

Top 23 C# Performance Projects

  • GitHub repo BenchmarkDotNet

    Powerful .NET library for benchmarking

    Project 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.

  • GitHub repo Entitas-CSharp

    Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity

    Project 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

  • SonarLint

    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.

  • GitHub repo perfview

    PerfView is a CPU and memory performance-analysis tool

    Project 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

  • GitHub repo optick

    C++ Profiler For Games

    Project mention: Optick: C++ Profiler for Games | news.ycombinator.com | 2021-11-03
  • GitHub repo App.Metrics

    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

  • GitHub repo ComputeSharp

    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

    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.

  • GitHub repo NetCoreServer

    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 solution

    Project mention: Networking lib/framework for multiplayer servers ? | reddit.com/r/csharp | 2021-10-03
  • GitHub repo Lazy Cache

    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.

  • GitHub repo BedrockFramework

    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.

  • GitHub repo FastExpressionCompiler

    Fast compiler of C# Expression tree to the delegate

    Project 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.

  • GitHub repo PowerUp

    Decompilation Tools and High Productivity Utilities

    Project mention: PowerUp: Decompilation Tools and High Productivity Utilities | news.ycombinator.com | 2021-11-19
  • GitHub repo NetFabric.Hyperlinq

    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
  • GitHub repo SqlQueryStress

    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.

  • GitHub repo CrossPlatformDiskTest

    Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking app

    Project 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

  • GitHub repo RecordParser

    Zero Allocation Writer/Reader Parser for .NET Core

  • GitHub repo ZiggyCreatures.FusionCache

    FusionCache is an easy to use, high performance and robust cache with an optional distributed 2nd layer and some advanced features.

  • GitHub repo SimpleSIMD

    Easy to use SIMD accelerated Array and Span methods

    Project mention: Generic math SIMD Span and Array methods | reddit.com/r/csharp | 2021-08-10

    Link to the project: Click Me

  • GitHub repo 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.

  • GitHub repo CS_BeatSaber_GottaGoFast

    Significantly decreases the time it takes to (re)start and leave songs in Beat Saber

    Project mention: Beat Saber is the only game that makes me dread every update | reddit.com/r/beatsaber | 2021-05-27
  • GitHub repo SenseiDE

    Unleash The Ultimate Performance from Age of Empires 2 Definitive

    Project 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

  • GitHub repo 2021-object-pool

    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
  • GitHub repo MicroBenchmarksDotNet

    C# Benchmarks for a better understanding of performance cost

    Project 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

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-09.

C# Performance related posts


What are some of the best open-source Performance projects in C#? This list will help you:

Project Stars
1 BenchmarkDotNet 7,238
2 Entitas-CSharp 5,418
3 EntityComponentSystemSamples 4,228
4 perfview 2,951
5 optick 2,044
6 App.Metrics 1,997
7 ComputeSharp 1,373
8 NetCoreServer 1,246
9 Lazy Cache 1,102
10 BedrockFramework 802
11 FastExpressionCompiler 754
12 PowerUp 741
13 NetFabric.Hyperlinq 668
14 SqlQueryStress 577
15 CrossPlatformDiskTest 194
16 RecordParser 128
17 ZiggyCreatures.FusionCache 119
18 SimpleSIMD 50
19 Unchase.FluentPerformanceMeter 31
20 CS_BeatSaber_GottaGoFast 23
21 SenseiDE 19
22 2021-object-pool 6
23 MicroBenchmarksDotNet 0
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.