C# Code Analysis and Metrics

Open-source C# projects categorized as Code Analysis and Metrics

Top 10 C# Code Analysis and Metric Projects

Code Analysis and Metrics
  1. BenchmarkDotNet

    Powerful .NET library for benchmarking

    Project mention: Various .NET Benchmarks | dev.to | 2025-03-28

    The name of the library is BenchmarkDotNet and the documentation can be found here. The only thing you have to do is:

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. App.Metrics

    App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.

  4. CodeMaid

    CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

  5. Project mention: Default Interface Implementations in C#: Where Inheritance Goes to Troll You | dev.to | 2024-12-09

    Leverage Static Analysis Tools: Use tools like Roslyn analyzers (e.g. Roslyn Analyzers for C# or SonarAnalyzer for .NET) to catch risky patterns.

  6. StyleCop

    Analyzes C# source code to enforce a set of style and consistency rules.

  7. Metrics-Net

    The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.

  8. NsDepCop

    NsDepCop is a static code analysis tool that enforces namespace and assembly dependency rules in C# projects.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. CsharpMacros

    A simple template base system of macros for C# that can be executed in design time

  11. WebBen

    Cross platform HTTP server benchmark tool

  12. AspNet.Metrics

    No longer maintained, instead see - https://github.com/alhardy/AppMetrics/

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

C# Code Analysis and Metrics discussion

Log in or Post with

C# Code Analysis and Metrics related posts

  • Various .NET Benchmarks

    2 projects | dev.to | 28 Mar 2025
  • The efficient way to measure time in .NET

    4 projects | dev.to | 4 Jan 2025
  • Default Interface Implementations in C#: Where Inheritance Goes to Troll You

    2 projects | dev.to | 9 Dec 2024
  • Conociendo BenchmarkDotNet

    2 projects | dev.to | 14 Sep 2024
  • Understanding Class Performance in C#

    1 project | dev.to | 21 May 2024
  • Stop Guessing, Start Measuring: Transform Your Code with BenchmarkDotnet!

    2 projects | dev.to | 13 Feb 2024
  • How to improve C# performance on matrix multiplication example?

    2 projects | /r/csharp | 11 Dec 2023
  • A note from our sponsor - Stream
    getstream.io | 14 Jul 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

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

# Project Stars
1 BenchmarkDotNet 11,047
2 App.Metrics 2,226
3 CodeMaid 1,928
4 .NET Compiler Platform ("Roslyn") Analyzers 1,655
5 StyleCop 1,207
6 Metrics-Net 638
7 NsDepCop 214
8 CsharpMacros 66
9 WebBen 11
10 AspNet.Metrics 9

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that C# is
the 10th most popular programming language
based on number of references?