View LatestBenchmarks.md

feature/dev-si (base line)

Method Mean StdErr StdDev Scaled Scaled-StdDev RPS Gen 0 Allocated
ParsePlaintextTechEmpower 2.0483 us 0.0150 us 0.0822 us 1.00 0.00 488,200.52 - 355 B
ParsePipelinedPlaintextTechEmpower 1.6980 us 0.0139 us 0.0764 us 0.83 0.05 588,921.33 - 344 B
ParseLiveAspNet 5.2135 us 0.0707 us 0.3870 us 2.55 0.21 191,810.41 - 1.11 kB
ParsePipelinedLiveAspNet 5.0287 us 0.0448 us 0.2456 us 2.46 0.15 198,859.71 - 1.1 kB
ParseUnicode 8.1457 us 0.0646 us 0.3540 us 3.98 0.22 122,763.79 - 1.94 kB
ParseUnicodePipelined 8.0588 us 0.05
View Azurevm.md

Dev

Method Mean StdDev Scaled Scaled-StdDev RPS
ParsePlaintext 1.9746 us 0.1077 us 1.00 0.00 506,425.99
ParsePipelinedPlaintext 1.5634 us 0.0461 us 0.79 0.04 639,627.04
ParseLiveAspNet 6.9810 us 0.3158 us 3.54 0.23 143,245.89
ParsePipelinedLiveAspNet 7.3884 us 0.2028 us 3.75 0.21 135,347.64
ParseUnicode 13.6600 us 0.4350 us 6.94 0.40 73,206.52
ParseUnicodePipelined 14.3855 us 0.3619 us 7.30 0.40 69,514.63
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
{