Skip to content

Benchmarks for #116054 (EgorBo) #362

Open
@EgorBot

Description

@EgorBot

Processing dotnet/runtime#116054 (comment) command:

Command

-amd -arm

using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;

public class Bench
{
    private static Dictionary<string, int> Dictionary =
        new()
        {
            { "1", 1 },
            { "222", 2 },
            { "3333", 3 },
            { "44444", 4 },
        };

    [Benchmark]
    [Arguments("44444")]
    public int Lookup(string key) => Dictionary[key];
}

(EgorBot will reply in this issue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions