Do You Know How Many Tasks JavaScript Can Process in One Second on Your Computer
Here is a program to see how many tasks JavaScript can process in one second on Your Computer function JavaScriptSpeed(){ var count = 0; function add (){ count = count +1; } var now = Date.now(); while (Date.now() - now< 1000 ) { add(); } console.log(count); }; JavaScriptSpeed(); Approximately 10379015 times in my computer . In one second JavaScript can call the add function 10379015 times or in other word 10.3 million times! You can check on your computer by Copy-pasting on your browser.