{"id":298135,"date":"2020-02-03T15:00:31","date_gmt":"2020-02-03T15:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298135"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298135","title":{"rendered":".NET Core vs Framework. \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/481558\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ee\/3j\/e3\/ee3je3wvcbn6jjyma9dyv6m9p90.jpeg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0420\u0435\u043b\u0438\u0437 .NET Core 3.1 \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0432\u043e\u0434 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 Framework \u043d\u0430 Core. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u043e\u0442\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 (LTS), \u0442.\u0435. \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 WPF \u0438 WinForms, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  <\/p>\n<p>\u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043e\u0442 Core \u0432 \u0441\u0430\u043c\u044b\u0445 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 List, Array \u0438 Dictionary. <\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0442\u043e\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0432 Core 3 \u2014 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442! <a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"benchmarki\">\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u044f \u0432\u0437\u044f\u043b \u0442\u0440\u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0430: .NET Framework 4.8, .NET Core 3.1 \u0438 .NET Core 2.1. \u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">BenchmarkDotNet=v0.12.0, OS=Windows 10.0.18363 Intel Core i7-7700K CPU 4.20GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores .NET Core SDK=3.1.101 [Host] : .NET Core 3.1.1 (CoreCLR 4.700.19.60701, CoreFX 4.700.19.60801), X64 RyuJIT Job-1  : .NET Framework 4.8 (4.8.4075.0), X64 RyuJIT Job-2  : .NET Core 2.1.15 (CoreCLR 4.6.28325.01, CoreFX 4.6.28327.02), X64 RyuJIT Job-3  : .NET Core 3.1.1 (CoreCLR 4.700.19.60701, CoreFX 4.700.19.60801), X64 RyuJIT<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u044f \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u0434\u0432\u0443\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 (\u043d\u0430 Haswell \u0438 Sky Lake), \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u043e\u0432 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b \u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u0435. <\/p>\n<p>  <\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 ValuesGenerator (\u0434\u0430 \u0438 \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u043b\u044f \u0441\u0430\u043c\u0438\u0445 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u043e\u0432) \u044f \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0438\u0437 <a href=\"https:\/\/github.com\/dotnet\/performance\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u0435\u0440\u0444\u043e\u043c\u0430\u043d\u0441-\u0442\u0435\u0441\u0442\u043e\u0432<\/a>. \u042d\u0442\u0438 \u0442\u0435\u0441\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 .NET Core \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439.<\/p>\n<p>  <\/p>\n<h2 id=\"list\">List<\/h2>\n<p>  <\/p>\n<p><strong>\u0426\u0438\u043a\u043b for<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 List_IterateFor<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[GenericTypeArguments(typeof(int))] [GenericTypeArguments(typeof(string))] public class ListIterationFor&lt;T&gt; {     [Params(100, 1_000, 10_000)]     public int Size;      private List&lt;T&gt; _list;      [GlobalSetup]     public void Setup() =&gt; _list = new List&lt;T&gt;(ValuesGenerator.ArrayOfUniqueValues&lt;T&gt;(Size));      [Benchmark]     public T List_IterateFor()     {         T result = default;         List&lt;T&gt; collection = _list;          for (int i = 0; i &lt; collection.Count; i++)             result = collection[i];          return result;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Runtime<\/th>\n<th>Size<\/th>\n<th>Mean<\/th>\n<th>Error<\/th>\n<th>StdDev<\/th>\n<th>Ratio<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>IterateFor_Int<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>565.09 ns<\/td>\n<td>0.191 ns<\/td>\n<td>0.127 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>IterateFor_Int<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>451.14 ns<\/td>\n<td>0.236 ns<\/td>\n<td>0.156 ns<\/td>\n<td>0.80<\/td>\n<\/tr>\n<tr>\n<td>IterateFor_Int<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>451.08 ns<\/td>\n<td>0.143 ns<\/td>\n<td>0.085 ns<\/td>\n<td><strong>0.80<\/strong><\/td>\n<\/tr>\n<tr>\n<td>IterateFor_String<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>574.80 ns<\/td>\n<td>6.795 ns<\/td>\n<td>4.494 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>IterateFor_String<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>460.86 ns<\/td>\n<td>3.771 ns<\/td>\n<td>2.494 ns<\/td>\n<td>0.80<\/td>\n<\/tr>\n<tr>\n<td>IterateFor_String<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>460.35 ns<\/td>\n<td>0.681 ns<\/td>\n<td>0.405 ns<\/td>\n<td><strong>0.80<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0412 Core JIT \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434, \u0447\u0442\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 List \u0432 \u0446\u0438\u043a\u043b\u0435 <strong>for<\/strong> \u0441\u0442\u0430\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430 <strong>~20%<\/strong>. <\/p>\n<p>  <\/p>\n<p><strong>\u0426\u0438\u043a\u043b foreach<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 List_IterateForEach<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[GenericTypeArguments(typeof(int))] [GenericTypeArguments(typeof(string))] public class ListIterationForEach&lt;T&gt; {     [Params(100, 1_000, 10_000)]     public int Size;      private List&lt;T&gt; _list;      [GlobalSetup]     public void Setup() =&gt; _list = new List&lt;T&gt;(ValuesGenerator.ArrayOfUniqueValues&lt;T&gt;(Size));      [Benchmark]     public T List_IterateForEach()     {         T result = default;         List&lt;T&gt; collection = _list;          foreach (var item in collection)             result = item;          return result;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Runtime<\/th>\n<th>Size<\/th>\n<th>Mean<\/th>\n<th>Error<\/th>\n<th>StdDev<\/th>\n<th>Ratio<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>IterateForEach_Int<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>1,574.5 ns<\/td>\n<td>2.73 ns<\/td>\n<td>1.81 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>IterateForEach_Int<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>1,575.8 ns<\/td>\n<td>3.82 ns<\/td>\n<td>2.27 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>IterateForEach_Int<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>1,568.1 ns<\/td>\n<td>0.61 ns<\/td>\n<td>0.40 ns<\/td>\n<td><strong>1.00<\/strong><\/td>\n<\/tr>\n<tr>\n<td>IterateForEach_String<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>8,046.3 ns<\/td>\n<td>36.51 ns<\/td>\n<td>24.15 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>IterateForEach_String<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>6,465.0 ns<\/td>\n<td>15.26 ns<\/td>\n<td>10.09 ns<\/td>\n<td>0.80<\/td>\n<\/tr>\n<tr>\n<td>IterateForEach_String<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>5,886.3 ns<\/td>\n<td>14.65 ns<\/td>\n<td>9.69 ns<\/td>\n<td><strong>0.73<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0418\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 List \u0441 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 <strong>foreach<\/strong> \u0441\u0442\u0430\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430 <strong>27%<\/strong>, \u043d\u043e \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c. \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e <strong>foreach<\/strong> \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c <strong>for<\/strong>. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 Core \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <strong>3.5x<\/strong> (value types) \u0438 <strong>12x<\/strong> (reference types), \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u043e\u043b\u043d\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435. <\/p>\n<p>  <\/p>\n<p><strong>Add<\/strong><\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0431\u0435\u0437 \u0440\u0435\u0441\u0430\u0439\u0437\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 List \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0451\u043c\u043a\u043e\u0441\u0442\u044c\u044e (capacity).<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 List_Add<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[GenericTypeArguments(typeof(int))] [GenericTypeArguments(typeof(string))] public class ListAdd&lt;T&gt; {     private T[] _uniqueValues;      [Params(100, 1_000, 10_000)]     public int Size;      [GlobalSetup]     public void Setup() =&gt; _uniqueValues = ValuesGenerator.ArrayOfUniqueValues&lt;T&gt;(Size);      [Benchmark]     public List&lt;T&gt; List_Add()     {         List&lt;T&gt; collection = new List&lt;T&gt;(Size);         T[] uniqueValues = _uniqueValues;          for (int i = 0; i &lt; uniqueValues.Length; i++)             collection.Add(uniqueValues[i]);          return collection;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Runtime<\/th>\n<th>Size<\/th>\n<th>Mean<\/th>\n<th>Error<\/th>\n<th>StdDev<\/th>\n<th>Ratio<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Add_Int<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>2,006.5 ns<\/td>\n<td>11.65 ns<\/td>\n<td>6.93 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>Add_Int<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>1,249.0 ns<\/td>\n<td>1.00 ns<\/td>\n<td>0.60 ns<\/td>\n<td>0.62<\/td>\n<\/tr>\n<tr>\n<td>Add_Int<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>1,260.9 ns<\/td>\n<td>5.88 ns<\/td>\n<td>3.89 ns<\/td>\n<td><strong>0.63<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Add_String<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>3,250.8 ns<\/td>\n<td>53.13 ns<\/td>\n<td>35.14 ns<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>Add_String<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>2,816.8 ns<\/td>\n<td>37.26 ns<\/td>\n<td>22.18 ns<\/td>\n<td>0.87<\/td>\n<\/tr>\n<tr>\n<td>Add_String<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>2,538.2 ns<\/td>\n<td>30.55 ns<\/td>\n<td>20.21 ns<\/td>\n<td><strong>0.78<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u041d\u0430 Core 3 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430 <strong>22%<\/strong> (reference types) \u0438 <strong>37%<\/strong> (value types). \u0427\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u0432 \u043a\u043e\u0434\u0435 \u043c\u0435\u0442\u043e\u0434\u0430? \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0440\u0435\u0441\u0430\u0439\u0437\u0430, \u0442.\u0435. \u0441\u0430\u043c\u044b\u0439 \u0447\u0430\u0441\u0442\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c <code>[AggressiveInlining]<\/code>, \u0442.\u0435. \u043e\u043d \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u043d\u043b\u0430\u0439\u043d\u0438\u0442\u0441\u044f. \u0418\u0437 \u043c\u0435\u043b\u043a\u0438\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439: \u0443\u0431\u0440\u0430\u043d\u044b \u0434\u0432\u0435 \u043b\u0438\u0448\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u044b\u0445\u043e\u0434\u0430 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f <code>size<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u043a\u0435\u0448\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. <\/p>\n<p>  <\/p>\n<p><strong>Contains<\/strong><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430 Contains: \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 List_Contains<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[GenericTypeArguments(typeof(int))] [GenericTypeArguments(typeof(string))] public class ListContains&lt;T&gt; where T : IEquatable&lt;T&gt; {     [Params(100, 1_000, 10_000)]     public int Size;      private List&lt;T&gt; _list;     private T[] _lookupValues;      [GlobalSetup]     public void Setup()     {         var uniqueValues = ValuesGenerator.ArrayOfUniqueValues&lt;T&gt;(Size * 2);         _list = uniqueValues.Take(Size).ToList();         _lookupValues = uniqueValues.Skip(Size).ToArray();     }      [Benchmark]     public int List_Contains()     {         int count = 0;         List&lt;T&gt; collection = _list;         T[] array = _lookupValues;          for (int i = 0; i &lt; array.Length; i++)         {             if (collection.Contains(array[i]))                 count++;         }          return count;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Runtime<\/th>\n<th>Size<\/th>\n<th>Mean<\/th>\n<th>Error<\/th>\n<th>StdDev<\/th>\n<th>Ratio<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Contains_Int<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>1,128.975 us<\/td>\n<td>5.4951 us<\/td>\n<td>3.6347 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>Contains_Int<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>456.040 us<\/td>\n<td>0.1437 us<\/td>\n<td>0.0950 us<\/td>\n<td>0.40<\/td>\n<\/tr>\n<tr>\n<td>Contains_Int<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>188.002 us<\/td>\n<td>0.1619 us<\/td>\n<td>0.0964 us<\/td>\n<td><strong>0.17<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Contains_String<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>4,027.20 us<\/td>\n<td>9.479 us<\/td>\n<td>5.641 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>Contains_String<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>3,332.93 us<\/td>\n<td>2.156 us<\/td>\n<td>1.128 us<\/td>\n<td>0.83<\/td>\n<\/tr>\n<tr>\n<td>Contains_String<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>2,723.48 us<\/td>\n<td>2.460 us<\/td>\n<td>1.464 us<\/td>\n<td><strong>0.68<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u041d\u0430 Core 3 \u043f\u043e\u0438\u0441\u043a Int \u0432 List \u0441\u0442\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 <strong>6 \u0440\u0430\u0437<\/strong> \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0430 \u043f\u043e\u0438\u0441\u043a \u0441\u0442\u0440\u043e\u043a \u2014 \u0432 <strong>1.4 \u0440\u0430\u0437\u0430<\/strong>. \u0412 Core JIT \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0434\u0435\u0432\u0438\u0440\u0443\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u0442.\u0435. \u043e\u043d\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0442\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0438\u043d\u043b\u0430\u0439\u043d\u0435\u043d\u044b. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0435\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <code>EqualityComparer.Default.Equals<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 Int \u0432\u0441\u0451 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0432\u044b\u0437\u043e\u0432\u0443 <code>Int32.Equals<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0438\u043d\u043b\u0430\u0439\u043d\u0438\u0442\u0441\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u043a\u043e\u0434 \u043f\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0431\u043b\u0438\u0437\u043e\u043a \u043a \u043f\u0440\u044f\u043c\u043e\u043c\u0443 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0434\u0432\u0443\u0445 Int.<\/p>\n<p>  <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0440\u0430\u043d\u044c\u0448\u0435 \u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 Contains \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 IndexOf, \u043d\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u0435\u0440\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Core. \u0412 \u043f\u043e\u043b\u043d\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 \u044d\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043e\u043d\u0438 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. <\/p>\n<p>  <\/p>\n<p><strong>List Methods Summary<\/strong><\/p>\n<p>  <\/p>\n<p>\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (ratio) \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 List \u043f\u0440\u0438 N = 1000.<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>List Method<\/th>\n<th>Type<\/th>\n<th>.NET 4.8<\/th>\n<th>Core 2.1<\/th>\n<th>Core 3.1<\/th>\n<th>Details<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ctor<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.82<\/td>\n<td>0.47<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3MV\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Ctor<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.90<\/td>\n<td>0.92<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Mw\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateFor<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.80<\/td>\n<td>0.80<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Mr\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateFor<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.80<\/td>\n<td>0.80<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Mo\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateForEach<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3MK\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateForEach<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.80<\/td>\n<td>0.73<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3M6\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Add<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.62<\/td>\n<td>0.63<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Mi\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Add<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.87<\/td>\n<td>0.78<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3M1\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Contains<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.40<\/td>\n<td>0.17<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3MD\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Contains<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.83<\/td>\n<td>0.68<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3My\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IndexOf<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.99<\/td>\n<td>0.43<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3M9\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IndexOf<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.95<\/td>\n<td>0.95<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3MH\">Report<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p><strong> Array Methods Summary<\/strong><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 List \u2014 \u044d\u0442\u043e \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u043d\u0430\u0434 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c.<br \/>  \u0422\u0430\u043a \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Array \u043f\u0440\u0438 N = 1000.<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Array Method<\/th>\n<th>Type<\/th>\n<th>.NET 4.8<\/th>\n<th>Core 2.1<\/th>\n<th>Core 3.1<\/th>\n<th>Details<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ctor<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.73<\/td>\n<td>0.88<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Ml\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Ctor<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.75<\/td>\n<td>0.84<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3DU\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateFor<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.86<\/td>\n<td>1.00<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3DT\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateFor<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Dk\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateForEach<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.84<\/td>\n<td>1.00<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3DI\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>IterateForEach<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Dt\">Report<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u0430\u043a \u0438 \u043f\u0440\u0435\u0436\u0434\u0435, \u0446\u0438\u043a\u043b <strong>foreach<\/strong> \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <strong>for<\/strong>. \u0422.\u0435. \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u0435\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 \u0446\u0438\u043a\u043b\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"dictionary\">Dictionary<\/h2>\n<p>  <\/p>\n<p><strong>Randomized Hash<\/strong><\/p>\n<p>  <\/p>\n<p>\u0412 .NET Core \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0445\u0435\u0448\u0435\u0439 \u0441\u0442\u0440\u043e\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c (Marvin). \u0422.\u0435. \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0445\u0435\u0448 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u043c. \u042d\u0442\u043e \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0445\u0435\u0448-\u0430\u0442\u0430\u043a, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 &quot;hash flooding&quot; (<a href=\"https:\/\/andrewlock.net\/why-is-string-gethashcode-different-each-time-i-run-my-program-in-net-core\">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/a>). \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u043d\u0435\u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c Dictionary \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0441\u0435\u043b\u0430, \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0445\u0435\u0448 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439 (\u0441\u0435\u0439\u0447\u0430\u0441 <code>HashCollisionThreshold = 100<\/code>). <\/p>\n<p>  <\/p>\n<p><strong>Add<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 Dictionary_Add<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[GenericTypeArguments(typeof(int))] [GenericTypeArguments(typeof(string))] public class DictionaryAdd&lt;T&gt; {     private T[] _uniqueValues;      [Params(100, 1_000, 10_000)]     public int Size;      [GlobalSetup]     public void Setup() =&gt; _uniqueValues = ValuesGenerator.ArrayOfUniqueValues&lt;T&gt;(Size);      [Benchmark]     public Dictionary&lt;T, T&gt; Dictionary_Add()     {         var collection = new Dictionary&lt;T, T&gt;(Size);         var uniqueValues = _uniqueValues;          for (int i = 0; i &lt; uniqueValues.Length; i++)             collection.Add(uniqueValues[i], uniqueValues[i]);          return collection;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Runtime<\/th>\n<th>Size<\/th>\n<th>Mean<\/th>\n<th>Error<\/th>\n<th>StdDev<\/th>\n<th>Ratio<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Add_IntKey<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>10.449 us<\/td>\n<td>0.0690 us<\/td>\n<td>0.0456 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>Add_IntKey<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>12.270 us<\/td>\n<td>0.0492 us<\/td>\n<td>0.0325 us<\/td>\n<td>1.17<\/td>\n<\/tr>\n<tr>\n<td>Add_IntKey<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>11.355 us<\/td>\n<td>0.0723 us<\/td>\n<td>0.0478 us<\/td>\n<td><strong>1.09<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Add_StringKey<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>33.229 us<\/td>\n<td>0.0331 us<\/td>\n<td>0.0219 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>Add_StringKey<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>35.303 us<\/td>\n<td>0.1821 us<\/td>\n<td>0.1084 us<\/td>\n<td>1.06<\/td>\n<\/tr>\n<tr>\n<td>Add_StringKey<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>26.976 us<\/td>\n<td>0.1248 us<\/td>\n<td>0.0825 us<\/td>\n<td><strong>0.81<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 Dictionary \u0441 \u043a\u043b\u044e\u0447\u043e\u043c String \u0441\u0442\u0430\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430 <strong>19%<\/strong>. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 Int \u043a\u043b\u044e\u0447\u043e\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (ratio) \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430: \u043d\u0430 100 \u2014 0.95, \u043d\u0430 1&#8217;000 \u2014 1.09, \u043d\u0430 10&#8217;000 \u2014 0.93. \u041e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e &quot;\u0448\u0443\u043c&quot;. \u041d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u0435\u0449\u0451 \u043c\u0435\u043d\u044c\u0448\u0435. \u0411\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0441 \u043a\u043b\u044e\u0447\u043e\u043c \u0442\u0438\u043f\u0430 Int \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. <\/p>\n<p>  <\/p>\n<p><strong>GetValue<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 Dictionary_GetValue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">[GenericTypeArguments(typeof(int))] [GenericTypeArguments(typeof(string))] public class DictionaryGetValue&lt;T&gt; {     private Dictionary&lt;T, T&gt; _dictionary;     private T[] _values;      [Params(100, 1_000, 10_000)]     public int Size;      [GlobalSetup]     public void Setup()     {         _values = ValuesGenerator.ArrayOfUniqueValues&lt;T&gt;(Size);         _dictionary = _values.ToDictionary(i =&gt; i);     }      [Benchmark]     public T Dictionary_GetValue()     {         Dictionary&lt;T, T&gt; collection = _dictionary;         T[] values = _values;          T result = default;          for (int i = 0; i &lt; values.Length; i++)             result = collection[values[i]];          return result;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Runtime<\/th>\n<th>Size<\/th>\n<th>Mean<\/th>\n<th>Error<\/th>\n<th>StdDev<\/th>\n<th>Ratio<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>GetValue_IntKey<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>10.916 us<\/td>\n<td>0.019 us<\/td>\n<td>0.013 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>GetValue_IntKey<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>10.985 us<\/td>\n<td>0.135 us<\/td>\n<td>0.089 us<\/td>\n<td>1.01<\/td>\n<\/tr>\n<tr>\n<td>GetValue_IntKey<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>9.424 us<\/td>\n<td>0.086 us<\/td>\n<td>0.056 us<\/td>\n<td><strong>0.86<\/strong><\/td>\n<\/tr>\n<tr>\n<td>GetValue_StringKey<\/td>\n<td>.NET 4.8<\/td>\n<td>1000<\/td>\n<td>31.622 us<\/td>\n<td>0.294 us<\/td>\n<td>0.175 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>GetValue_StringKey<\/td>\n<td>.NET Core 2.1<\/td>\n<td>1000<\/td>\n<td>31.787 us<\/td>\n<td>0.090 us<\/td>\n<td>0.047 us<\/td>\n<td>1.00<\/td>\n<\/tr>\n<tr>\n<td>GetValue_StringKey<\/td>\n<td>.NET Core 3.1<\/td>\n<td>1000<\/td>\n<td>23.572 us<\/td>\n<td>0.098 us<\/td>\n<td>0.058 us<\/td>\n<td><strong>0.75<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443 \u0441\u0442\u0430\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430 <strong>25%<\/strong>, \u043f\u043e Int \u043a\u043b\u044e\u0447\u0443 \u2014 \u043d\u0430 <strong>14%<\/strong>. \u041e\u0434\u043d\u0430\u043a\u043e, \u0437\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 Dictionary. \u0427\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u2014 \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 Framework \u043e\u0442\u0441\u0442\u0430\u0435\u0442 \u043e\u0442 Core 3 \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445 Core 3 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 <strong>1.5<\/strong> \u0440\u0430\u0437\u0430 \u0431\u044b\u0441\u0442\u0440\u0435\u0439. \u041f\u0440\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0432 10&#8217;000 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c Core 3 \u043f\u0430\u0434\u0430\u0435\u0442 \u0434\u043e \u0443\u0440\u043e\u0432\u043d\u044f Framework \u0438 \u0434\u0430\u0436\u0435 \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435 (\u0441\u043c. \u043e\u0442\u0447\u0435\u0442\u044b \u043d\u0438\u0436\u0435). <\/p>\n<p>  <\/p>\n<p>\u0412 \u043a\u043e\u0434\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 Dictionary \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0432\u043b\u0438\u044f\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. <\/p>\n<p>  <\/p>\n<p><strong>Dictionary Methods Summary<\/strong><\/p>\n<p>  <\/p>\n<p>\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Dictionary \u043f\u0440\u0438 N = 1000.<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Dictionary Method<\/th>\n<th>Type<\/th>\n<th>.NET 4.8<\/th>\n<th>Core 2.1<\/th>\n<th>Core 3.1<\/th>\n<th>Details<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ctor<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.95<\/td>\n<td>0.62<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Dm\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Ctor<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>4.06<\/td>\n<td>3.84<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3D3\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Add<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>1.17<\/td>\n<td>1.09<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Ds\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>Add<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>1.06<\/td>\n<td>0.81<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3DG\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>GetValue<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>1.01<\/td>\n<td>0.86<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3DZ\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>GetValue<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>1.00<\/td>\n<td>0.75<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Dn\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>ContainsKey<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.84<\/td>\n<td>0.78<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Dc\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>ContainsKey<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.99<\/td>\n<td>0.73<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Dz\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>ContainsValue<\/td>\n<td>Int<\/td>\n<td>1.00<\/td>\n<td>0.54<\/td>\n<td>0.54<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3D2\">Report<\/a><\/td>\n<\/tr>\n<tr>\n<td>ContainsValue<\/td>\n<td>String<\/td>\n<td>1.00<\/td>\n<td>0.86<\/td>\n<td>0.90<\/td>\n<td><a href=\"https:\/\/git.io\/Jv3Da\">Report<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<h2 id=\"rezultaty\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h2>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c, \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0430 Core 3 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <strong>20-30%<\/strong>, \u0430 \u0442\u043e \u0438 \u0431\u043e\u043b\u044c\u0448\u0435. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. <\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 \u0438 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u0441\u0435\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 <a href=\"https:\/\/github.com\/fixer-m\/RuntimePerformance\">\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0430 GitHub<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f Core \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0433\u043d\u0430\u043b Framework \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c, \u0430 \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u0432\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0435\u0433\u043e \u043f\u043e\u0437\u0430\u0434\u0438. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f ASP.NET Core \u2014 \u043a \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u043d \u0432\u044b\u0448\u0435\u043b \u0432 \u0442\u043e\u043f \u0441\u0430\u043c\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 (\u0442\u043e\u043f-5 \u043f\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c <a href=\"https:\/\/www.techempower.com\/benchmarks\/#section=test&amp;runid=8721f3a4-7b13-4703-9cd8-91b6779668c2&amp;hw=ph&amp;test=plaintext\">\u0442\u0435\u0441\u0442\u0430\u043c TechEmpower<\/a>).<\/p>\n<p>  <\/p>\n<h2 id=\"materialy-po-teme\">\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e \u0442\u0435\u043c\u0435<\/h2>\n<p>  <\/p>\n<p>\u0421\u0442\u0438\u0432\u0435\u043d \u0422\u0430\u0443\u0431 \u043f\u0440\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 .NET Core: <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/performance-improvements-in-net-core\">Core 2.0<\/a>, <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/performance-improvements-in-net-core-2-1\">Core 2.1<\/a>, <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/performance-improvements-in-net-core-3-0\">Core 3.0<\/a><br \/>  \u0411\u043b\u043e\u0433\u0438: <a href=\"https:\/\/aakinshin.net\">\u0410\u043d\u0434\u0440\u0435\u0439 \u0410\u043a\u0438\u043d\u044c\u0448\u0438\u043d<\/a>, <a href=\"https:\/\/egorbo.com\/\">\u0415\u0433\u043e\u0440 \u0411\u043e\u0433\u0430\u0442\u043e\u0432<\/a>, <a href=\"https:\/\/adamsitnik.com\">Adam Sitnik<\/a>, <a href=\"https:\/\/mattwarren.org\">Matt Warren<\/a><br \/>  \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e <a href=\"https:\/\/github.com\/adamsitnik\/awesome-dot-net-performance\">.NET Performance<\/a><br \/>  \u0422\u0435\u0441\u0442\u044b \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043e\u0442 <a href=\"https:\/\/www.techempower.com\/benchmarks\">TechEmpower<\/a><br \/>  \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/dotnet\/performance\">\u0441 \u043f\u0435\u0440\u0444\u043e\u043c\u0430\u043d\u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/a><br \/>  \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/dotnet\/runtime\">\u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0430 Core<\/a><br \/>  \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 <a href=\"https:\/\/referencesource.microsoft.com\">.NET Framework<\/a> \u0438 <a href=\"https:\/\/source.dot.net\">.NET Core<\/a><\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/481558\/\"> https:\/\/habr.com\/ru\/post\/481558\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/481558\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ee\/3j\/e3\/ee3je3wvcbn6jjyma9dyv6m9p90.jpeg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0420\u0435\u043b\u0438\u0437 .NET Core 3.1 \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0432\u043e\u0434 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 Framework \u043d\u0430 Core. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u043e\u0442\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 (LTS), \u0442.\u0435. \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 WPF \u0438 WinForms, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  <\/p>\n<p>\u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043e\u0442 Core \u0432 \u0441\u0430\u043c\u044b\u0445 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 List, Array \u0438 Dictionary. <\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0442\u043e\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0432 Core 3 \u2014 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442! <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298135","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298135"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298135\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}