3 ms·
It depends on the source language. We have done extensive benchmarking. For example, on Python the median slowdown is 1.4x. PyJS doesn't use all of JavaScript's
by enum 9y ago
It depends on the source language. We have done extensive benchmarking. For example, on Python the median slowdown is 1.4x. PyJS doesn't use all of JavaScript's features and we can exploit that to improve performance. Our worst slowdown is when the source language is JavaScript itself because we can't make simplifying assumptions. (Median slowdown is 20x.)
These are slowdowns on a cheap ChromeBook. We also have results from the four major browsers on a desktop machine.
- skrishnamurthi 9y agoBut note that the Stopify portion is completely optional and composes onto the end of an existing JavaScript compiler. So you can offer a faster-but-no-stopification mode versus a slower-but-with-stopification mode. While modes can be annoying, the point is that you don't have to be forced to pay this price due to the Stopify infrastructure. In contrast, a language like Pyret has the stopification built into its back-end, so you always pay the price (for now), whether you want it or not.