Ray Trace Benchmark comparing .NET 3.5 vs 4.6 modes

Link to GitHub results so far: LINK

So looks like x86 (.NET 4.6) runs best in Unity 2017 in that test.
Then oddly x64 with (.NET 3.5) comes in second.

From older tests its normal to see Mono on AMD perform faster with x86 builds. Wondering if Unity tweeked the old Mono 2.6 runtime to get better results with x64?


If anyone has other benchmarks or runs the RayTraceBenchmark on different hardware I’m interested in the results. Here are Win32 builds: Dropbox

If you want to test on your hardware with the RayTraceBenchmark don’t count the first pass as the Mono/.NET JIT will take some time. The second and third passes will be valid.

I have been doing Cubemark for a while… Unity Benchmark v0.1 - Industries - News & General Discussion - Unity Discussions

Interesting point I haven’t tried a 3.5 and 4.6 comparison, the benchmark is minimalist in code but might show up slight differences?

I’ve been waiting for the Multi-threaded Vectorised Transform update they keep talking about.

Correct me if I’m wrong but that benchmark is testing internal Unity systems that would have been written in C++ more than C# performance? If so the Mono update probably doesn’t effect it as much.


.net 4.6


.net 3.5

3.5 seems to be a fraction faster than 4.6 in this simple test.

x86 or x64? Try 4.6 x86… that is the fastest in the Ray trace benchmark. Also if thats the Editor its not going to be accurate, need to make a build.

Also here are Win32 builds of the RayTraceBenchmark so people don’t have to build them: Dropbox

Benchmark_35_x86: ~0.92
Benchmark_46_x86: ~0.71
Benchmark_35_x64: ~0.88
Benchmark_46_x64: ~0.91

win10, fullscreen, quality: fastest
i7-4720HQ CPU @ 2.60GHz

1 Like

Cool added more intel results as well: https://github.com/zezba9000/RayTraceBenchmark/blob/master/C#/Results.md

x86 with Mono 4.8 (.NET 4.6) seems to be the fastest on all CPUs thus far with that benchmark.

35_x64 : ~0.85
35_x86 : ~0.86

46_x64 : ~0.84
46_x86 : ~0.64

Windows 7 : i7-4770K (3.5Ghz) (x64)
Notable performance boost on X86 net 4.6