For eval, two cases need to be distinguished: functions containing an eval
statement, and functions defined inside eval'ed code. Consider:
function foo() {
/* lots of stuff... */
eval("function bar() { /* lots of stuff... */ }");
/* more stuff... */
}
foo();
bar();
In this case, function
The document you linked to is outdated. It was based on Crankshaft which
hasn't been used since V8 v5.9.
See the first two lines:
*All this is wrong in TurboFan. (Node 8+)*
*Please do not take anything written here as performance advice, this is
here for historical reasons.*
On Sun, Apr 14,
I just found this:
https://github.com/petkaantonov/bluebird/wiki/Optimization-killers
So that kind of answers my own question. Still, if anyone wants to drop its
two cents, I'll be glad to read.
Still puzzled why I 'measure' the same performance on both cases. I'm doing
millions of linear