4 ms·
Transpiling to JS is actually a good idea because one could benefit from JIT (as long as your variable types are not too dynamic). UPD: I looked at the compile
by codedokode 4y ago
Transpiling to JS is actually a good idea because one could benefit from JIT (as long as your variable types are not too dynamic).
UPD: I looked at the compiled code and currently it is unlikely to be optimized. Also this page [1] shows that the code run in browser can be up to 1000 times slower than in a native Python interpreter.
[1] https://brython.info/speed_results.html https://brython.info/speed_results.html
- kervarker 4y agoThe figures in this page are relative to base 100 for CPython. Sometimes Brython is faster (value < 100), sometimes slower (value > 100). The worst value is 12 times slower.