Choosing between CoreCLR and Mono #59650
Replies: 9 comments
-
Beta Was this translation helpful? Give feedback.
-
@stefan-sf-ibm Can you share a branch / files? |
Beta Was this translation helpful? Give feedback.
-
I started of a hello world build by doing
Running |
Beta Was this translation helpful? Give feedback.
-
Ah, looks like this will run using the shared framework, which will not contain any of the mono parts. It's something that is technically possible, but since all mono configurations are self contained (w/ dotnet publish), we haven't had the need to go all the way. Can you try |
Beta Was this translation helpful? Give feedback.
-
Running |
Beta Was this translation helpful? Give feedback.
-
I should have asked earlier. What OS? |
Beta Was this translation helpful? Give feedback.
-
I'm on Fedora 33 |
Beta Was this translation helpful? Give feedback.
-
BenchmarkDotNet automatically rebuilds your benchmark and launches that instead of using the one you built. (I've never looked into why it does this, but I've always assumed it has to do with how it instruments things for benchmarking.) The situation might be that you're starting the BenchmarkDotNet runner as Mono but it's starting the actual benchmarks with CoreCLR. If your goal is to compare benchmarks between CoreCLR and Mono, you should probably use BenchmarkDotNet's built-in support for doing so. |
Beta Was this translation helpful? Give feedback.
-
@PathogenDavid thanks for the hint! I will give it a try :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to choose between CoreCLR and Mono? I tried adding
UseMonoRuntime
to my csproj file without luck, i.e., CoreCLR is still used.I'm asking because ultimately I would like to run a couple of BenchmarkDotnet tests while switching between CoreCLR and Mono.
I'm using dotnet 6.0 RC1 on x64.
Beta Was this translation helpful? Give feedback.
All reactions