3 ms·
I think the top answer is pretty spot-on. Also, JavaScript has a much smaller API surface area. In addition to optimizing core code execution, a decent amount
by munificent 12y ago
I think the top answer is pretty spot-on.
Also, JavaScript has a much smaller API surface area. In addition to optimizing core code execution, a decent amount of work goes into optimizing the core libraries and built-in types: RegExps, string operations, collections, hashes, etc.
In JavaScript, that set of stuff is pretty small. In Ruby and Python, it's enormous.