We have software that performs numerous simple geometric mathematical operations (always the same ones) for our projects. It takes two weeks to compute a single project. The software is written in Ruby. Now we want to increase its performance. We are considering converting the old Ruby code into C# or C++ (as our knowledge is better in .NET). In .NET, we use the ANTS Performance Profiler to debug our performance issues. We would like to find something similar for Ruby to identify which lines of code are consuming the most performance. Is there anything similar to it available? Additionally, it would be interesting to know if there is an easy way to transform our Ruby code into C# or C++ (as we only found online converters that didn’t work well), or any other language with better performance.