Show / Hide Table of Contents

Sample: IntroDisassemblyDry

Getting only the Disassembly without running the benchmarks for a long time.

Sometimes you might be interested only in the disassembly, not the results of the benchmarks. In that case you can use Job.Dry which runs the benchmark only once.

Source code

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Diagnosers;

namespace BenchmarkDotNet.Samples
{
    [DisassemblyDiagnoser(maxDepth: 3)]
    [DryJob]
    public class IntroDisassemblyDry
    {
        [Benchmark]
        public void Foo()
        {

        }
    }
}

Links

  • Diagnosers
  • Disassembler
  • The permanent link to this sample: Sample: IntroDisassemblyDry

  • Improve this Doc
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors