3 ms·
Since Go is compiled its going to be faster.
by ape4 10y ago
Since Go is compiled its going to be faster.
- 15155 10y agoV8 has a JIT compiler that is extraordinarily, sometimes surprisingly fast for certain tasks. This "oh it's AOT compiled so it's faster" mantra is not accurate causation.
- takeda 10y agoWhile this is true most of the time, it's not entirely correct. Python for example is also compiled into *.pyc files, but it's still slower than go. The real reason why Go would be faster than JS, is not as much about compiled/not compiled but statically typed vs dynamically typed. In statically typed language the types are already predetermined early on (during compilation) so the code no longer has to perform type checking at runtime.