Rewritten benchmarks from https://blogs.msdn.microsoft.com/dotnet/2017/06/07/performance-improvements-in-net-core/ with the help of BenchmarkDotNet. The corresponded blog post: http://aakinshin.net/blog/post/stephen-toub-benchmarks-part1/