3 ms·
> Did you look at the source of the programs… Did you? :-) That Node pidigits program also uses GMP. Besides those 2, did you notice other JS programs not 50
by igouy 5y ago
> Did you look at the source of the programs…
Did you? :-)
That Node pidigits program also uses GMP.
Besides those 2, did you notice other JS programs not 50x faster than the corresponding Python programs ?
- Mikeb85 5y agoI never made the assertion JS is 50x faster... But everyone knows it is significantly faster than Python. Probably at least a few times for pure JS vs. pure Python programs. Not that it matters, Python is basically glue to run mostly C and C++ programs.
- igouy 5y agoGiven that you say "basically glue" why the previous surprise about "basically using C types and GMP" ?
- ithrow 5y agoThere are 2 programs there that are 50x faster in JS, other 40x, other 35x, other 16x, a couple 7x, not sure what are you arguing about.
- igouy 5y agoThe importance of looking at more than one measurement.