How we doubled Mono’s Float Speed

1 · Miguel de Icaza · April 12, 2018, 2:12 a.m.
My friend Aras recently wrote the same ray tracer in various languages, including C++, C# and the upcoming Unity Burst compiler. While it is natural to expect C# to be slower than C++, what was interesting to me was that Mono was so much slower than .NET Core. The numbers that he posted did not look good: C# (.NET Core): Mac 17.5 Mray/s, C# (Unity, Mono): Mac 4.6 Mray/s, C# (Unity, IL2CPP): Mac 17.1 Mray/s, I decided to look at what was going on, and document possible areas for improvement. A...