I don't buy the argument that a lot of the performance jumps from rewrites comes from developers writing more optimised code.
I've worked on multiple rewrites of existing systems in both JS and PHP to Go and those projects were usually re-written strictly 1:1 (bugs becoming features and all that). It was pretty typical to see an 8-10x performance improvement by just switching language.
replies(2):