|
|
|
Ask HN: Why does Node.js start so slow?
|
|
2 points
by FreeHugs
1480 days ago
|
|
time php -r 'echo 123;' outputs: 123
real 0m0.031s
user 0m0.023s
sys 0m0.008s
time python3 -c 'print (123)'outputs: 123
real 0m0.022s
user 0m0.019s
sys 0m0.004s
time node -e 'console.log(123);'outputs: 123
real 0m0.578s
user 0m0.551s
sys 0m0.028s
Why is the node version more than 10 times slower than the PHP and Python versions? |
|
On my M1 Pro: