Unity DSP Performance Test
I have performed a series of tests for different approaches to sine computation, the goal being to evaluate the relative performance of different approaches to DSP code for use in Unity. This is relevant for anyone who wants to write realtime software synthesizers and effects for Unity games. The example used is a simple algorithm that computes a sum of sines using different approaches: library functions, polynomial approximation, and lookup tables of different sizes.
The key result of the tests was:
C# in Unity with the IL2CPP scripting backend performs comparably to C++,
which indicates that C# could be viable for implementing DSP code.
The following graph shows the performance of 4 different sine computation algorithms (lookup tables are the fastest), implemented using C++ and C# with different scripting backends:

In Unity PlayerSettings, the IL2CPP scripting backend is enabled here:

You can read the full article and review the source code at github.