View probing.txt
-- Listing probe configurations...
probe_config_t: probe=[C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.3] deps-json=[000002C979D02880] deps-dir-probe=[0]
probe_config_t: probe=[] deps-json=[0000000000000000] deps-dir-probe=[1]
probe_config_t: probe=[C:\Program Files\dotnet\store\x64\netcoreapp2.0] deps-json=[0000000000000000] deps-dir-probe=[0]
probe_config_t: probe=[C:\Users\davifowl\.nuget\packages] deps-json=[0000000000000000] deps-dir-probe=[0]
probe_config_t: probe=[C:\Program Files\dotnet\sdk\NuGetFallbackFolder] deps-json=[0000000000000000] deps-dir-probe=[0]
Adding tpa entry: C:\Users\davifowl\source\repos\WebApplication5\WebApplication5\bin\Debug\netcoreapp2.0\WebApplication5.dll
Processing TPA for deps entry [Microsoft.AspNetCore.Authentication.Abstractions, 2.0.0, lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.dll]
Considering entry [Microsoft.AspNetCore.Authentication.Abstractions/2.0.0/lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.dll]
View console-core.md
Pass File Line # Expression Inc (ms) Inc (%) Exc (ms) Exc (%) # Bug
Total Evaluation 390 100% 13 3.4% 1
Initial Properties (Pass 0) 7 1.7% 7 1.7% 1
Properties (Pass 1) 190 48.7% 4 0.9% 1
ItemDefinitionGroup (Pass 2) 11 2.8% 0 0% 1
Items (Pass 3) 53 13.5% 3 0.7% 1
Lazy Items (Pass 3.1) 93 23.9% 28 7.2% 1
UsingTasks (Pass 4) 5 1.2% 5 1.2% 1
Targets (Pass 5) 18 4.7% 2 0.4% 1
View console(netcore)-eval.md
Pass File Line # Expression Inc (ms) Inc (%) Exc (ms) Exc (%) # Bug
Total Evaluation 387 100% 14 3.6% 1
Initial Properties (Pass 0) 9 2.4% 9 2.4% 1
Properties (Pass 1) 184 47.6% 5 1.3% 1
ItemDefinitionGroup (Pass 2) 11 2.9% 0 0% 1
Items (Pass 3) 51 13.1% 3 0.8% 1
Lazy Items (Pass 3.1) 93 23.9% 26 6.8% 1
UsingTasks (Pass 4) 6 1.4% 6 1.4% 1
Targets (Pass 5) 20 5.1% 1 0.4% 1
View console
dotnet build /clp:PerformanceSummary
Project Evaluation Performance Summary:
377 ms /Users/dfowler/dev/consoleapp/consoleapp.csproj 3 calls
Project Performance Summary:
547 ms /Users/dfowler/dev/consoleapp/consoleapp.csproj 9 calls
426 ms Restore 1 calls
View gist:e7937e40471e641a3901542b1cfa1cb9
## Pipelined
Response headers
RequestsPerSecond: 3274743.68
Response and Request Headers (strings allocated for values)
RequestsPerSecond: 2809557.04
View ipv4only.cs
public static class WebHostBuilderIISExtensions
{
private static readonly string ServerPort = "PORT";
public static IWebHostBuilder UseIISIntegrationOnIpv4Only(this IWebHostBuilder webHostBuilder)
{
var port = webHostBuilder.GetSetting(ServerPort) ?? Environment.GetEnvironmentVariable($"ASPNETCORE_{ServerPort}");
var address = "http://127.0.0.1:" + port;
return webHostBuilder.UseIISIntegration()
View websockets.cs
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
namespace SimpleWebSockets
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
View conferenceplannerswagger.json
{"swagger":"2.0","info":{"version":"v1","title":"Conference Planner API"},"basePath":"/","paths":{"/api/Attendees/{username}":{"get":{"tags":["Attendees"],"operationId":"ApiAttendeesByUsernameGet","consumes":[],"produces":[],"parameters":[{"name":"username","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Success"}}}},"/api/Attendees":{"post":{"tags":["Attendees"],"operationId":"ApiAttendeesPost","consumes":["application/json-patch+json","application/json","text/json","application/*+json"],"produces":[],"parameters":[{"name":"input","in":"body","required":false,"schema":{"$ref":"#/definitions/Attendee"}}],"responses":{"200":{"description":"Success"}}}},"/api/Attendees/{username}/session/{sessionId}":{"post":{"tags":["Attendees"],"operationId":"ApiAttendeesByUsernameSessionBySessionIdPost","consumes":[],"produces":[],"parameters":[{"name":"username","in":"path","required":true,"type":"string"},{"name":"sessionId","in":"path","required":true,"type":"integer","format":"int32"}],"r
View AutoLoad.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyModel;
using WebApplication40;
View Dapper2.cs
// Whatever shared state you need, the root of the universe
public class DapperContext
{
private QueryCache _cache = new QueryCache();
public static DapperContext Instance = new DapperContext();
public Task<IEnumerable<dynamic>> QueryAsync(IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null)
{
// Real logic happens here