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! |
Answered by
timcassell
Apr 22, 2026
Replies: 1 comment 15 replies
|
The only way to do it today is to use |
15 replies
Answer selected by
takla21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.