Updates:
Cc: [email protected]
Comment #4 on issue 2179 by [email protected]: Breakpoint of not
executed function slows down javascript performance
http://code.google.com/p/v8/issues/detail?id=2179
With debugger on, we don't use the optimizing compiler (crankshaft). The
non-optimizing compiler handles prototype chain lookups badly, so that the
following code
breakFunc = function() {
return 0;
}
var start = new Date();
for(var i=0;i<10000000;i++) {
Math.sqrt(Math.random());
}
console.log("time " + (new Date() - start) + "ms");
with breakpoint in breakFunc takes 7000ms, in Chrome. This is still much
too slow compared to the 680ms in d8, though.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev