Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 716 Bytes

IntroInProcess.md

File metadata and controls

34 lines (22 loc) · 716 Bytes
uid
BenchmarkDotNet.Samples.IntroInProcess

Sample: IntroInProcess

InProcessEmitToolchain is our toolchain which does not generate any new executable. It emits IL on the fly and runs it from within the process itself. It can be useful if want to run the benchmarks very fast or if you want to run them for framework which we don't support. An example could be a local build of CoreCLR.

Usage

[InProcessAttribute]
public class TypeWithBenchmarks
{
}

Source code

[!code-csharpIntroInProcess.cs]

Output

Links

  • @docs.toolchains
  • The permanent link to this sample: @BenchmarkDotNet.Samples.IntroInProcess