This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
Seperate mono and netcore runtimes for csharp #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I noticed there was only the mono benchmark present but no .NET Core version.
C# code can be compiled and then ran on different runtimes (Mono, .NET Core, .NET Framework, etc..) with varying characteristics.
Mono is the open source implementation, started when there was no cross-plat support from Microsoft.
However now also .NET Core exists, which is the Microsoft provided open source and cross-platform runtime.
This is why I created a csharp folder in the root of the repo (same as rust), and have a different set of benchmarks for mono and .net core.
Currently I only copied the simple implementation from mono to .net core and gave links to where to install each of the runtimes.
Here's the results for what I can easily run on my machine:
I didn't make any effort to optimize anything in this PR, just to set it up so there can be multiple runtimes for .NET.
I also tried a dockerized version of the benchmarks, but got 2x slower performance. I'm guessing it's something to do with the redirection of the input file, but I'm not sure.