3 ms·
> It's well known that javascript is at least an order of magnitude slower than C If your base is base-2, yes. (It is well-understood that when you don't have
by cxr 1y ago
> It's well known that javascript is at least an order of magnitude slower than C
If your base is base-2, yes. (It is well-understood that when you don't have your thumb on the scale—e.g. selecting, whether deliberately or carelessly, poor/pathological code to benchmark—that the expected slowdown factor of executing on a mainstream JS engine instead of AOT is in the neighborhood of 2x to 4x. Of course browsers JIT instead of AOT out of necessity—a constraint that doesn't apply to programs loaded from disk.)