BenchmarkDotNet=v0.13.1, OS=Windows 10.0.22000
11th Gen Intel Core i7-1185G7 3.00GHz, 1 CPU, 8 logical and 4 physical cores
.NET SDK=7.0.100-preview.7.22377.5
[Host] : .NET 6.0.8 (6.0.822.36306), X64 RyuJIT
DefaultJob : .NET 6.0.8 (6.0.822.36306), X64 RyuJIT
This file contains hidden or 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
This file contains hidden or 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>net48</TargetFramework> | |
<AzureFunctionsVersion>v4</AzureFunctionsVersion> | |
<OutputType>Exe</OutputType> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.10.0" /> | |
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" /> | |
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.7.0" /> |
This file contains hidden or 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
[MemoryDiagnoser] | |
public class CollectionBenchmarks | |
{ | |
string[] items = new string[] { "hello", "world", "some", "and", "one" }; | |
[Benchmark] | |
public HashSet<string> AutoGrow() | |
{ | |
var tpas = new HashSet<string>(); | |
foreach (var tpa in items) |
This file contains hidden or 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.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleAppNetFr481 | |
{ | |
internal class Program | |
{ |
BenchmarkDotNet=v0.13.1, OS=Windows 10.0.25141
Intel Xeon CPU E5-1650 v4 3.60GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK=6.0.300
[Host] : .NET 5.0.17 (5.0.1722.21314), X64 RyuJIT
DefaultJob : .NET 5.0.17 (5.0.1722.21314), X64 RyuJIT
This file contains hidden or 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
public class ExceptionHandlingMiddleware : IFunctionsWorkerMiddleware | |
{ | |
private readonly ILogger<ExceptionHandlingMiddleware> _logger; | |
public ExceptionHandlingMiddleware(ILogger<ExceptionHandlingMiddleware> logger) | |
{ | |
_logger = logger ?? throw new ArgumentNullException(nameof(logger)); | |
} | |
public async Task Invoke(FunctionContext context, FunctionExecutionDelegate next) |
BenchmarkDotNet=v0.13.1, OS=Windows 10.0.22530
Unknown processor
.NET SDK=6.0.202
[Host] : .NET 5.0.16 (5.0.1622.16705), X64 RyuJIT
DefaultJob : .NET 5.0.16 (5.0.1622.16705), X64 RyuJIT
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
This file contains hidden or 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
IEnumerable<string> first = new[] {"one", "two", "three","four","five","six","seven","eight"}; | |
IEnumerable<string> second = new[] { "two", "three"}; | |
var matchFound = first.Intersect(second, StringComparer.OrdinalIgnoreCase).Any(); |