• This repository has been archived on 26/Feb/2021
  • Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    C#
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Benchmarks, prototypes and discussions for database access performance investigation

.NET Data Access Performance

The purpose of this repository is to host benchmarks and prototypes, as well as serve as the main forum for an open initiative to greatly improve the performance of storing and retrieving data using popular database systems through common .NET data access APIs.

Background

While we have achieved great performance gains in other areas, .NET still lags behind other platforms in data access benchmarks.

As an example, the TechEmpower Fortunes benchmark shows similar numbers across raw ADO.NET, Dapper and EF Core variations: throughput flatlines or even decreases as concurrent requests increase, which seems to indicate that bottlenecks are preventing efficient hardware utilization.

The performance of accessing databases using .NET should be much more competitive, and we (several people from Microsoft and the .NET developer community) are going to do something about it.

Goals

  • Improve our understanding of how the performance of data access in .NET is affected by several factors (sensitivity analysis), in order to gain the ability to answer questions like these:

    • What prevents .NET from scaling in the TechEmpower Fortunes benchmark as the number of concurrent requests increases?
    • Why are EF Core results comparatively worse on a "cloud setup" but almost the same as raw data access on a "physical setup"?
    • What can cause the significant differences we observe between different ADO.NET providers (e.g. SqlClient, Npgsql, MySqlConnect)?
    • How does our performance on Linux compare to Windows?
    • How async compares to sync for different number of concurrent requests?
    • How does our scalability improve when adding processors?
  • Identify and remove bottlenecks so that .NET can be much more competitive on data access performance

  • Identify additional common scenarios that our own benchmarks or TechEmpower could track

  • Come up with novel ways to increase performance as well as learn about clever things other platforms are doing to be more efficient in common scenarios

Notes on methodology

Here are some general ideas we have discussed:

  • Everything is on the table right now:

    • Although ideally we will find ways to speed up existing APIs (and hence existing application code that consumes those APIs) without changing their contracts, we will not stop there. E.g. if we find any API pattern in ADO.NET which fundamentally prevents writing code that reaches optimal performance, we will try to come up with better patterns.
    • We will be taking a deeper look at the networking code in database drivers: Although purely managed code solutions have several advantages, we will try with (and learn from) whatever makes things faster, including native APIs.
    • We must assume that we don't know much about what makes a data access APIs really fast (otherwise we wouldn't need to do this work, right?). For this reason we need to keep an open mind when looking at alternative lines of investigation, regardless of whether they have or not been tried before.
  • Performance baselines: for each type of database we will test, we'll need to identify an API or tool which we can rely on to produce performance results that we can assume equivalent to the theoretical optimal performance. E.g. for PostgreSQL we are using pgbench. We will execute this on any machine/database setup we use, to find a baseline we can compare all other results of the same setup against.

  • Strive for easily reproducible tests: Anyone should be able to clone and run our tests with minimal effort on their own machine setup. We have had good results using Docker for this, as the overhead seems to be usually low and the results still representative.

More Repositories

1

Mvc

[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
C#
5,617
star
2

JavaScriptServices

[Archived] This repository has been archived
C#
3,035
star
3

KestrelHttpServer

[Archived] A cross platform web server for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
C#
2,629
star
4

SignalR

[Archived] Incredibly simple real-time web for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
C#
2,381
star
5

Identity

[Archived] ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. Project moved to https://github.com/aspnet/AspNetCore
C#
1,961
star
6

Announcements

Subscribe to this repo to be notified about major changes in ASP.NET Core and Entity Framework Core
1,658
star
7

MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1,298
star
8

Security

[Archived] Middleware for security and authorization of web apps. Project moved to https://github.com/aspnet/AspNetCore
C#
1,270
star
9

AspLabs

Repo for ASP.NET experiments that are not ready for a production release
C#
1,224
star
10

Benchmarks

Benchmarks for ASP.NET Core
C#
1,169
star
11

samples

Samples for ASP.NET Core
983
star
12

AspNetKatana

Microsoft's OWIN implementation, the Katana project
C#
966
star
13

dnx

OBSOLETE - see readme
C++
963
star
14

Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
C#
883
star
15

DependencyInjection

[Archived] Contains common DI abstractions that ASP.NET Core and Entity Framework Core use. Project moved to https://github.com/aspnet/Extensions
C#
873
star
16

AspNetWebStack

ASP.NET MVC 5.x, Web API 2.x, and Web Pages 3.x (not ASP.NET Core)
C#
853
star
17

SignalR-samples

Samples for ASP.NET Core SignalR
JavaScript
748
star
18

aspnet-docker

[Archived] ASP.NET Core Docker images for 1.x. Go to https://github.com/dotnet/dotnet-docker for 2.1 and up.
719
star
19

WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
C#
627
star
20

Entropy

A chaotic experimental playground for new features and ideas - check here for small and simple samples for individual features.
C#
560
star
21

Hosting

[Archived] Code for hosting and starting up an ASP.NET Core application. Project moved to https://github.com/aspnet/Extensions and https://github.com/aspnet/AspNetCore
C#
552
star
22

Logging

[Archived] Common logging abstractions and a few implementations. Project moved to https://github.com/aspnet/Extensions
C#
506
star
23

Caching

[Archived] Libraries for in-memory caching and distributed caching. Project moved to https://github.com/aspnet/Extensions
C#
480
star
24

LibraryManager

C#
457
star
25

DotNetTools

[Archived] Various .NET command line tools. Project moved to https://github.com/aspnet/AspNetCore
C#
439
star
26

HttpAbstractions

[Archived] HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities. Project moved to https://github.com/aspnet/AspNetCore
C#
382
star
27

WebSockets

[Archived] Implementation of the WebSocket protocol, along with client and server integration components.
C#
357
star
28

Microsoft.Data.Sqlite

[Archived] SQLite implementations of the System.Data.Common interfaces. Project has moved to https://github.com/aspnet/EntityFrameworkCore
C#
347
star
29

AzureSignalR-samples

Code samples for Azure SignalR
JavaScript
327
star
30

Configuration

[Archived] Interfaces and providers for accessing configuration files. Project moved to https://github.com/aspnet/Extensions
C#
327
star
31

live.asp.net

Code for live.asp.net, which hosts the ASP.NET Community Stand-up
C#
289
star
32

Routing

[Archived] Middleware for routing requests to application logic. Project moved to https://github.com/aspnet/AspNetCore
C#
272
star
33

Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
256
star
34

jquery-validation-unobtrusive

Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.
JavaScript
254
star
35

HttpClientFactory

[Archived] Contains an opinionated factory for creating HttpClient instances. Project moved to https://github.com/aspnet/Extensions
C#
252
star
36

AspNetIdentity

ASP.NET Identity for ASP.NET 4.x applications
C#
246
star
37

Diagnostics

[Archived] Diagnostics middleware for reporting info and handling exceptions and errors in ASP.NET Core, and diagnosing Entity Framework Core migrations errors. Project moved to https://github.com/aspnet/AspNetCore
C#
213
star
38

MetaPackages

[Archived] NuGet meta packages. Project moved to https://github.com/aspnet/AspNetCore
C#
211
star
39

Templating

[Archived] ASP.NET Core templates for .NET CLI and Visual Studio. Project moved to https://github.com/aspnet/AspNetCore
C#
205
star
40

Proxy

[Archived] Proxy library for ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
C#
201
star
41

dnvm

OBSOLETE - see readme
PowerShell
174
star
42

FileSystem

[Archived] Abstraction of file system APIs. Project moved to https://github.com/aspnet/Extensions
C#
171
star
43

BasicMiddleware

[Archived] Basic middleware components for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
C#
169
star
44

BugTracker

OBSOLETE - see readme
JavaScript
158
star
45

Universe

[Archived] Repo for building the entire ASP.NET and Entity Framework stack. Project moved to https://github.com/aspnet/AspNetCore
C#
158
star
46

Localization

[Archived] Localization abstractions and implementations for ASP.NET Core applications. Project moved to https://github.com/aspnet/AspNetCore
C#
157
star
47

Templates

This repo is OBSOLETE - please see the README file for information
C#
151
star
48

Options

[Archived] A framework for accessing and configuring POCO settings. Project moved to https://github.com/aspnet/Extensions
C#
149
star
49

IISIntegration

[Archived] ASP.NET Core IIS integration. Project has moved to https://github.com/aspnet/AspNetCore
C++
148
star
50

jquery-ajax-unobtrusive

[Maintenance mode: only security and critical bug fixes are being worked on] Add-on to jQuery Ajax to enable unobtrusive options in data-* attributes.
JavaScript
144
star
51

SignalR-Client-Cpp

C++ Client for ASP.NET Core SignalR
C++
140
star
52

AspNetWebHooks

Libraries to create and consume web hooks on ASP.NET 4.x (Due to other priorities this project is currently in maintenance mode only. There are no planned releases at this time. No new features are planned and we are only addressing critical issues as required.)
C#
135
star
53

Blazor.Docs

Docs for Blazor
CSS
131
star
54

Blazor-Hackathon

Blazor is now official and is part of the ASP.NET Core Framework. All the work is tracked in the dotnet/aspnetcore repo.
C#
131
star
55

DataProtection

[Archived] Data Protection APIs for protecting and unprotecting data. Project moved to https://github.com/aspnet/AspNetCore
C#
130
star
56

Session

[Archived] Session state middleware for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
C#
126
star
57

MicrosoftConfigurationBuilders

Microsoft.Configuration.Builders
C#
121
star
58

AspNetCoreModule

ASP.NET Core Module for IIS and IIS Express
C#
115
star
59

StaticFiles

[Archived] Middleware for handling requests for file system resources including files and directories. Project moved to https://github.com/aspnet/AspNetCore
C#
114
star
60

HttpSysServer

[Archived] A web server for ASP.NET Core based on the Windows Http Server API. Project moved to https://github.com/aspnet/AspNetCore
C#
106
star
61

JsonPatch

[Archived] JSON PATCH library. Project moved to https://github.com/aspnet/AspNetCore
C#
103
star
62

CORS

[Archived] Implementations of common CORS policy and CORS middleware. Project moved to https://github.com/aspnet/AspNetCore
C#
90
star
63

RoslynCodeDomProvider

Roslyn CodeDOM provider
C#
84
star
64

AuthSamples

[Archived] Samples for ASP.NET Core authentication and authorization. Project moved to https://github.com/aspnet/AspNetCore
C#
83
star
65

Razor.VSCode

[Archived] This repo has been migrated. Please use the https://github.com/aspnet/AspNetCore repo instead.
C#
81
star
66

Antiforgery

[Archived] AntiForgery token feature for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
C#
78
star
67

BuildTools

Infrastructure utilities used in the ASP.NET Core build system. (Obsolete: use https://github.com/dotnet/arcade for all new projects)
C#
73
star
68

ResponseCaching

[Archived] ASP.NET Core middleware for caching responses. Project moved to https://github.com/aspnet/AspNetCore
C#
70
star
69

Testing

[Archived] Testing infrastructure, including support for xUnit.net and StyleCop. Project moved to https://github.com/aspnet/Extensions
66
star
70

SignalR-Client-JS

OBSOLETE - see readme
59
star
71

SignalR-Client-Net

OBSOLETE - see readme
57
star
72

AspNetSessionState

ASP.NET Session State (not for ASP.NET Core)
C#
55
star
73

NerdDinner

Porting NerdDinner to ASP.NET 5
JavaScript
50
star
74

SignalR-Redis

OBSOLETE - see readme
C#
48
star
75

EventNotification

[Archived] Event notification system for broadcasting application state and configuration. Project moved to https://github.com/aspnet/Extensions
C#
45
star
76

SignalR-SqlServer

OBSOLETE - see readme
C#
42
star
77

MvcPrecompilation

[Archived] Tooling that allows compilation of MVC Razor views as part of build and publish. Project moved to https://github.com/aspnet/AspNetCore
C#
42
star
78

KoreBuild

OBSOLETE REPO - see readme
Shell
37
star
79

vsweb-publish

Web publish support for ASP.NET 5 in Visual Studio 2015
PowerShell
33
star
80

homebrew-dnx

OBSOLETE - see readme
Ruby
32
star
81

Coherence

A build that verifies that all the packages form a consistent graph.
C#
30
star
82

AspNetWebFormsDependencyInjection

Dependency injection support for ASP.NET Web Forms 4.x
C#
30
star
83

UserSecrets

Command line tool and configuration provider for managing secrets
28
star
84

HtmlAbstractions

[Archived] HTML abstractions used for building HTML content. Project moved to https://github.com/aspnet/AspNetCore
C#
27
star
85

EntityFramework.Tools

.NET Command Line tools for Entity Framework Core
PowerShell
25
star
86

vsweb-docs

Showcase for Visual Studio web features
JavaScript
24
star
87

AzureIntegration

[Archived] Features that integrate ASP.NET Core with Azure. Project moved to https://github.com/aspnet/AspNetCore
C#
24
star
88

RazorTooling

Razor tooling for Visual Studio 2015
C#
23
star
89

PlatformAbstractions

OBSOLETE - used only for 1.0/1.1 patch builds
23
star
90

SignalR-Client-Java

OBSOLETE - see readme
23
star
91

libuv-build

Libuv build automation for ASP.NET Core
PowerShell
22
star
92

Wave

Cross-platform tools for running perf and stress tests
JavaScript
21
star
93

ServerTests

[Archived] Tests for Helios, WebListener and Kestrel. Project moved to https://github.com/aspnet/AspNetCore
C#
21
star
94

SignalR-ServiceBus

OBSOLETE - see readme
C#
21
star
95

libuv-package

NuGet packages for libuv
PowerShell
19
star
96

AADIntegration

[Archived] UI and library components for integrating ASP.NET Core applications with Azure Active Directory. Project moved to https://github.com/aspnet/AspNetCore
C#
19
star
97

BrowserLink

Browser Link loader for Visual Studio integration
C#
17
star
98

AspNetWebOptimization

ASP.NET Web Optimization for ASP.NET 4.x applications
C#
15
star
99

JitBench

Repo for testing JIT stuff
C#
15
star
100

aspnet-win-docker

Windows Docker image for ASP.NET Core [WIP]
PowerShell
15
star