Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EgorBot for EgorBo in #108153 #106

Open
EgorBot opened this issue Sep 30, 2024 · 5 comments
Open

EgorBot for EgorBo in #108153 #106

EgorBot opened this issue Sep 30, 2024 · 5 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Sep 30, 2024

Processing dotnet/runtime#108153 (comment) command:

Command

-intel

using BenchmarkDotNet.Attributes;

[MemoryDiagnoser]
public class Bench
{
    IList<int> list = new int[1024];

    [Benchmark]
    public int Test()
    {
        int sum = 0;
        foreach (var i in list)
            sum += i;
        return sum;
    }
}

(EgorBot will reply in this issue)

@EgorBot
Copy link
Owner Author

EgorBot commented Sep 30, 2024

Benchmark results on AzureIntel

BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 16 logical and 8 physical cores
  Job-EXWVSZ : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-PBSHQS : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Method Toolchain Mean Error Ratio Allocated Alloc Ratio
Test Main 1.900 μs 0.0098 μs 1.00 32 B 1.00
Test PR 1.629 μs 0.0317 μs 0.86 32 B 1.00

BDN_Artifacts.zip

@EgorBot
Copy link
Owner Author

EgorBot commented Sep 30, 2024

cc @EgorBo (logs)

@EgorBo
Copy link

EgorBo commented Oct 3, 2024

@EgorBot -commit main -gv4 -profiler

using BenchmarkDotNet.Attributes;

public class Bench
{
    IList<int> list = new int[1024];

    [Benchmark]
    public int Test()
    {
        int sum = 0;
        foreach (var i in list)
            sum += i;
        return sum;
    }
}

@EgorBot
Copy link
Owner Author

EgorBot commented Oct 3, 2024

Benchmark results on AwsGraviton4

BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
AwsGraviton4
  Job-AXIILL : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
Job=Job-AXIILL  Toolchain=CoreRun  StdDev=0.0004 μs
Method Mean Error
Test 2.242 μs 0.0005 μs

BDN_Artifacts.zip

Profile for Bench_Test:

Flame graphs: Main 🔥
Speedscope: Main
Hot asm: Main
Hot functions: Main
Counters: Main

@EgorBot
Copy link
Owner Author

EgorBot commented Oct 3, 2024

cc @EgorBo (logs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants