View results.md

Base line:

Method Mean StdErr StdDev Scaled Scaled-StdDev RPS Gen 0 Allocated
ParsePlaintext 2.9385 us 0.1298 us 0.7110 us 1.00 0.00 340,313.21 - 105 B
ParsePipelinedPlaintext 3.1681 us 0.1238 us 0.6779 us 1.11 0.28 315,646.91 - 105 B
ParseLiveAspNet 17.9308 us 0.7491 us 4.1029 us 6.31 1.68 55,769.98 - 1.1 kB
ParsePipelinedLiveAspNet 15.3741 us 0.2586 us 1.4166 us 5.41 0.90 65,044.66 - 1.1 kB
ParseUnicode 20.4670 us 0.8955 us 4.9051 us 7.20 1.98 48,859.21 - 1.94 kB
ParseUnicodePipelined 28.3538 us 0.6693 us 3.6658 us 9.97 1.88 35,268.61 0.0504 1.94 kB
View assets.json
{
"version": 2,
"targets": {
".NETFramework,Version=v4.6": {
"Microsoft.AspNetCore.SignalR.Client/1.0.0-preview1-23482": {
"type": "package",
"dependencies": {
"Microsoft.AspNetCore.SignalR.Common": "1.0.0-preview1-23482",
"Microsoft.AspNetCore.Sockets.Client": "1.0.0-preview1-23482",
"NETStandard.Library": "1.6.1"
View IMiddleware.cs
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<HelloWorldMiddleware>();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
app.UseMiddleware<HelloWorldMiddleware>();
View async.cs
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
var tcs = new TaskCompletionSource<object>();
View channels.cs
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks.Channels;
namespace ConsoleApp39
{
View SpanTest.cs
class Program
{
static unsafe void Main(string[] args)
{
string value = "Hello World";
fixed (char* ptr = value)
{
var sp = Span<char>.UnsafeCreate(value, ref *(ptr + 6), value.Length - 6);
Console.WriteLine(sp[0]);
}
View Channels.md

Kestrel

Running 10s test @ http://10.211.55.4:5000/
  32 threads and 256 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    15.52ms   28.66ms 309.11ms   97.34%
    Req/Sec   709.11    151.30     1.90k    78.03%
  222431 requests in 10.05s, 28.00MB read
Requests/sec:  22132.11
View razor
Also @template and @taghelper for declarative templates and tag helpers in razor files. (inside viewimports)
@model MyViewModel
<grid data-source="Customers">
<column model="FirstName" />
<column model="LastName" />
<column model='@FirstName + " " + LastName' />
<item-template>
View monads.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication8
{
class Program
{
View Example1.cs
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)