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 #107305 #87

Open
EgorBot opened this issue Sep 6, 2024 · 2 comments
Open

EgorBot for EgorBo in #107305 #87

EgorBot opened this issue Sep 6, 2024 · 2 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Sep 6, 2024

Processing dotnet/runtime#107305 (comment) command:

Command

-intel -commit 8b34fb0656c2514b542321107f34c0bae659ff32 vs previous --envvars DOTNET_JitDisasm:CtorBench

using System;
using BenchmarkDotNet.Attributes;
using System.Collections.Generic;
public class Perf_Uri
{
    public static IEnumerable<object[]> Ctor_MemberData()
    {
        yield return ["https://a.much.longer.domain.name"];
    }

    [Benchmark]
    [ArgumentsSource(nameof(Ctor_MemberData))]
    public Uri CtorBench(string input) => new Uri(input);
}

(EgorBot will reply in this issue)

@EgorBot
Copy link
Owner Author

EgorBot commented Sep 6, 2024

Benchmark results on AzureIntel

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 16 logical and 8 physical cores
  Job-RNCBEO : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-HTZBJN : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
EnvironmentVariables=DOTNET_JitDisasm=CtorBench
Method Toolchain input Mean Error Ratio
CtorBench Before https(...).name [33] 124.4 ns 0.58 ns 1.00
CtorBench After https(...).name [33] 124.0 ns 0.55 ns 1.00

BDN_Artifacts.zip

@EgorBot
Copy link
Owner Author

EgorBot commented Sep 6, 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

1 participant