3 ms·
> Then you should be comparing them with the direct JavaScript equivalent, which would be something like an array of functions and a foreach/invoke over that.
by chrisseaton 4y ago
> Then you should be comparing them with the direct JavaScript equivalent, which would be something like an array of functions and a foreach/invoke over that.
But again... a JS JIT could unroll that loop, leaving with just a couple of instruction per call and no loop.
- spaetzleesser 4y agoDoes it or maybe could? I hear a lot about the miracles of JS JIT but from my experience C++ code will run circles around JS code in real world scenarios.