I was solving a simple coding challenge on an online website. i have written the code in C, C++, and C# for the same problem. Once you solve the problem the website gives some statistics about the correctness and performance. here is what something struck my eye. the c# code took 0.06 seconds to execute and give me the result where as C took 0.006 seconds and c++ took 0.009 seconds.
My question, why does c# code run 10 times slower? or for that matter of fact c/c++ run 10 times faster?
links to the website below.
i am assuming that same test cases have been on all the three code blocks.