How much faster are the IL2CPP builds on supported platforms?

How much faster are the IL2CPP builds on supported platforms?

As compared to what? I’ve been testing IL2CPP builds for Windows 10 Universal (UWP) and they’re not too bad at all… of course I have a pretty beefy machine. It actually takes longer for Visual Studio to process all of the cpp and header files than it does for Unity to do the IL2CPP builds. This is for a very tiny project though… a single scene with some test scripts to test my asset.

1 Like

If only we knew someone who had a benchmark they had developed that could do the testing for us… :stuck_out_tongue:

1 Like

My spinning cube benchmark simply tests the graphics performance of Unity, not the scripting performance.

However Unity’s WebGL benchmark would be ideal to gather this information.

Article where developer writes a bouncing cube demo in C++ and then C#, the C++ version is twice as fast.

http://creamysoft.blogspot.co.uk/2013/05/c-vs-c-performance.html

Article comparing C++ and C# with a variety of benchmarks and a Sudoku solver, variable results on some tests C# was comparable and even faster than C++ but on more complex tasks it was roughly twice as slow.

Head-to-head benchmark: C++ vs .NET - CodeProject

Oh I misunderstood… i thought you meant building. :). Arrow, I forget, is the source available for your benchmark? I could do UWP builds for you both .Net and IL2cpp. It would be another good test platform.

Some data from the Benchmarks Game (time in seconds)

http://benchmarksgame.alioth.debian.org/

n-body
C# Mono 21.84
C++ g++ 9.27

mandelbrot
C# Mono 8.13
C++ g++ 5.82

fasta-redux
C# Mono 2.84
C++ g++ 1.66

k-nucleotide
C# Mono 19.82
C++ g++ 0.43

regex-dna
C# Mono 26.48
C++ g++ 3.90

pidigits
C# Mono 11.22
C++ g++ 2.29

binary-trees
C# Mono 11.22
C++ g++ 6.98

It would not test the scripting performance, it’s a Unity graphics benchmark.

Ideally a real game or tutorial game scaled up, there is my RTS framework, or AI Tanks challenge.

Ahh… maybe I should work on some benchmarks… common stuff… Math, Reflection, and GC Pressure.