ReadyToRun benchmarks #2514
jairbubbles
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using
BenchmarkDotNet
to measure the boostrap time of my application and wanted to see the impact of using ReadyToRun assemblies (see https://learn.microsoft.com/en-us/dotnet/core/deploying/ready-to-run).It took me some time to figure it out so I'm sharing my recipe hoping it can be helpful to others.
You need to publish the application in order to test ReadyToRun assemblies so a custom toolchain is needed:
In the .csproj, it's also important to match the same target platform:
Then you can use the toolchain in your program.cs:
Beta Was this translation helpful? Give feedback.
All reactions