BenchmarkDotNet=v0.11.5, OS=Windows 10.0.18362
Intel Core i9-9900K CPU 3.60GHz (Coffee Lake), 1 CPU, 16 logical and 8 physical cores
.NET Core SDK=3.0.100-preview6-012085
[Host] : .NET Core 3.0.0-preview6-27724-03 (CoreCLR 3.0.19.27471, CoreFX 4.700.19.27405), 64bit RyuJIT
Job-HKNIHV : .NET Core 3.0.0-preview6-27724-03 (CoreCLR 3.0.19.27471, CoreFX 4.700.19.27405), 64bit RyuJIT
UnrollFactor=2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://devblogs.microsoft.com/dotnet/early-peek-at-csharp-11-features/#c-11-preview-list-patterns | |
// It's not middle, it's [1..^1], middle is only correct for 3 elements | |
// which could be assumed from https://github.com/dotnet/csharplang/blob/main/proposals/list-patterns.md because the examples | |
// simply do not include anything above 3 elements. | |
Console.WriteLine(CaptureSlice(new int[]{1,2,3})); | |
Console.WriteLine(CaptureSlice(new int[] { 1, 2, 3,4})); | |
Console.WriteLine(CaptureSlice(new int[] { 1, 2, 3, 4, 5 })); | |
Console.WriteLine(CaptureSlice(new int[] { 1, 2, 3, 4, 5, 6, 7, 8 })); | |
Console.ReadLine(); | |
static string CaptureSlice(int[] values) |
BenchmarkDotNet=v0.11.3, OS=Windows 10.0.17763.134 (1809/October2018Update/Redstone5)
Intel Core i9-9900K CPU 3.60GHz, 1 CPU, 16 logical and 8 physical cores
.NET Core SDK=2.2.100
[Host] : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT
DefaultJob : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT
.NET Core SDK (gemäß "global.json"):
Version: 2.1.403
Commit: 04e15494b6
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ***** BenchmarkRunner: Start ***** | |
// Found benchmarks: | |
// SelectedBenchmarks.DeserializeAnswerWithSpanJsonSerializer: Job-TJIAIH(Toolchain=myget builds) | |
// SelectedBenchmarks.DeserializeAnswerWithSpanJsonSerializerUtf8: Job-TJIAIH(Toolchain=myget builds) | |
// SelectedBenchmarks.SerializeAnswerWithSpanJsonSerializer: Job-TJIAIH(Toolchain=myget builds) | |
// SelectedBenchmarks.SerializeAnswerWithSpanJsonSerializerUtf8: Job-TJIAIH(Toolchain=myget builds) | |
// Validating benchmarks: | |
// ***** Building 4 benchmark(s) in Parallel: Start ***** | |
// ***** Done, took 00:00:11 (11.37 sec) ***** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Attributes.Jobs; | |
using BenchmarkDotNet.Running; | |
using Newtonsoft.Json; | |
namespace ConsoleApp34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.NetworkInformation; | |
using System.Reflection; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Connections.Features; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Buffers.Text; | |
using System.Globalization; | |
using System.Text; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
namespace FormatterBenchmark | |
{ | |
internal class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Buffers.Text; | |
using System.Globalization; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
namespace FormatterBenchmark | |
{ | |
internal class Program | |
{ |
NewerOlder