Run JavaScript on Cloudflare with Workers
&gt; <i>Due to the immense amount of work that has gone into optimizing V8, it outperforms just about any popular server programming language with the possible exceptions of C&#x2F;C++, Rust, and Go.</i><p>Odd statement and it’s not true.<p>I work with Node.js a lot, which is using V8 and have tested a lot of code cross compiled to both JavaScript and the JVM.<p>As a matter of fact the JVM beats the shit out of V8 in everything but startup time.<p>And this is not an educated guess, I have the same code, some cross-compiled via a compiler that can target both (plenty of such compilers these days, including Scala, Clojure and Kotlin) and some code hand optimized for each specific platform and the difference is huge in both cases. And let’s be clear, this is not code that handles numeric calculations, for which JS would be at a big disadvantage.<p>Imagine that I’m not running the same unit tests, for JS I have to do much less interations in property based testing, because Travis-ci chokes on the JS tests. So it’s a constant pain that I feel weekly.<p>And actually anybody that ever worked with both can attest to that. The performance of V8 is rather poor, except for startup time where the situation is reversed, V8 being amongst the best and the JVM amongst the worst if startup time matters.