I ran two for loops to 10 Billion, one in C++ and other in JavaScript which will be run in node js
I expected the C++ code to run in like 2-3 seconds, but it takes significantly more time than node.js to run.
The C++ code took 16.90s to run
The node.js took 10.03s to run
I ran the test multiple times and saw same result. Why?This is a screenshot of the test