I personally installed a test harness with a simple expression written in C # and unmanaged C ++, and then profile the application to see which delta you're working with.
Something else to consider is that you will introduce a maintenance problem using the application, especially if you have junior level developers who are expected to support the code. Make sure that you know what you get and what you lose depending on performance, as well as on the clarity of the code and maintainability.
As an aside, JIT'd C # code should have performance at the C ++ level with respect to arithmetic operations.
source share