-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#117332 (comment) command:
Command
-amd -arm
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
public class Bench
{
static readonly Dictionary<string, int> Dictionary = new(StringComparer.OrdinalIgnoreCase)
{
{ "Hi", 1 },
{ "DOTNET_SKIP_FIRST_TIME_EXPERIENCE", 2 }
};
[Benchmark]
public int LookupLong() => Dictionary["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"];
[Benchmark]
public int LookupShort() => Dictionary["Hi"];
}
(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels