I have a simple Application built using Mono on Ubuntu that prints out the entries of a list in sequence. The code takes about 6 ms to execute on Ubuntu, however the same code takes about 40 ms to execute on windows. Is there a reason why the same application code would run faster on Ubuntu than it would using the actual .net runtime on windows ?
Share
Mono is not a port of the .Net runtime. From the ‘What is Mono?’ page:
It’s entirely possible that the Mono implementation of some features could be faster than the .Net implementation.
Another possibility is that the code you’re running is not as optimized as it could be. Perhaps see if there are bottlenecks or loops that could be modified?