This makes it sound like the TypeScript runtime (interpreter or JIT) is written in Go, but the project uses the quickjs JavaScript runtime, which is written in C:
Probably the standard Go compiler doesn't provide many optimization?
I just checked that the one used by The Computer Language Benchmark Game, and not gccgo.
This makes it sound like the TypeScript runtime (interpreter or JIT) is written in Go, but the project uses the quickjs JavaScript runtime, which is written in C:
https://github.com/bellard/quickjs