Skip to content

Benchmarks for #113575 (EgorBo) #316

@EgorBot

Description

@EgorBot

Processing dotnet/runtime#113575 (comment) command:

Command

-arm -amd -windows_intel

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;

public class Benchmark
{
    static int[] _array = new int[5000];

    [Benchmark]
    [Arguments(4000)]
    public int Sum(int len)
    {
        Span<int> span = _array;

        int sum = 0;
        for (int i = 0; i < len; i++)
            sum += span[i];
        return sum;
    }
}

(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