Can BenchmarkDotNet generate a standalone benchmark executable without requiring the .NET SDK on the target machine? #3096
-
|
Hi, I want to run BenchmarkDotNet benchmarks on devices where installing the .NET SDK is not allowed. These devices can run .NET runtime applications, but they cannot build anything. My goal is to:
Is there a supported way to produce such a standalone benchmark runner? Or does BenchmarkDotNet always require the SDK on the machine where the benchmarks are executed? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
|
The only way to do it today is to use |
Beta Was this translation helpful? Give feedback.
The only way to do it today is to use
InProcessEmitToolchainfor JIT runtimes, orInProcessNoEmitToolchainfor AOT runtimes. It will run the benchmarks in the same process, so you lose process-level isolation.