Re: [v8-users] Re: Does 'eval' has the same performance as an explicit Script->Compile->Run pipeline?

2019-04-15 Thread Jakob Kummerow
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

Re: [v8-users] Re: Does 'eval' has the same performance as an explicit Script->Compile->Run pipeline?

2019-04-15 Thread 'Mathias Bynens' via v8-users
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,

[v8-users] Re: Does 'eval' has the same performance as an explicit Script->Compile->Run pipeline?

2019-04-14 Thread Al Mo
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