Answer the question
In order to leave comments, you need to log in
Where does JavaScript run faster: in the browser or in NodeJS?
Does NodeJS have a speed advantage when executing JavaScript code? Or is the browser engine still more optimized? I want to understand where it is more profitable in terms of time to carry out complex mathematical calculations, on the front in the browser or on the backend in NodeJS?
Answer the question
In order to leave comments, you need to log in
Considering that both there and there under the hood the same V8 question is meaningless.
Unless, of course, you understand by browser (like most) Chrome and its clones.
Firefox has a different engine, but in this case it is more correct to compare V8 vs SpiderMonkey.
Browsers are different. They work on different devices with different technical characteristics, therefore the question does not make any sense without specifying which browser is meant and on which device it will be launched.
Also, the expression "complex mathematical calculations" is not very clear. What is meant by "complexity"? Are they running for a long time? Take up a lot of RAM? How often are they performed?
Node has a browser engine . Node - basically just an IO wrapper for v8
js parsing/parsing is just one of the tasks of the browser before rendering pages and executing them on the page,
read something about browser work https://developer.mozilla.org/ru/docs/Web/Performa...
I want to understand where it is more profitable in terms of time to carry out complex mathematical calculations,
I want to understand where it is more profitable in terms of time to carry out complex mathematical calculations, on the front in the browser or on the backend in NodeJS?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question