Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Benchmarks for #117160 (EgorBo) #414

Open

Description

@EgorBot

Processing dotnet/runtime#117160 (comment) command:

Command

-intel -commit main -intel -mono --envvars MONO_VERBOSE_METHOD:Div

using BenchmarkDotNet.Attributes;

public class Bench
{
    uint value = 64;

    [Benchmark]
    public uint Div() => value / 8;

    [Benchmark]
    public uint Mod() => value % 8;

    [Benchmark]
    public uint Div_opt() => value >> 3;

    [Benchmark]
    public uint Mod_opt() => value & 7;
}

(EgorBot will reply in this issue)

Activity

  1. EgorBot commented on Jul 1, 2025

    @EgorBot
    OwnerAuthor

    Benchmark results on linux_azure_cascadelake

    BenchmarkDotNet v0.14.0, Ubuntu 24.04.2 LTS (Noble Numbat)
    Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 16 logical and 8 physical cores
      Job-JKLZQH : .NET 10.0.0 (42.42.42.42424) using MonoVM, X64 X86Base
    Job=Job-JKLZQH  EnvironmentVariables=MONO_VERBOSE_METHOD=Div  Toolchain=CoreRun
    
    Method Mean Error
    Div 0.0000 ns 0.0000 ns
    Mod 0.0000 ns 0.0000 ns
    Div_opt 0.0539 ns 0.0002 ns
    Mod_opt 0.0000 ns 0.0000 ns

    BDN_Artifacts.zip

    cc @EgorBo (agent_logs.txt). EgorBot manual: link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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