Open
Bug 604824
Opened 14 years ago
Updated 2 years ago
Make eval("g()") faster
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: dmandelin, Unassigned)
References
Details
Make the microbenchmark below faster. It is taken from tofte and does roughly the same kind of eval usage, the same number of times. Note that in tofte, 11 different functions are called, so the eval cache may or may not be the thing here. This seems to be costing us 3 ms on SunSpider relative to V8 in the shell, and 4 ms in the browser. function g() { return 33; } function f() { var t0 = new Date; for (var i = 0; i < 55000; ++i) { eval("g()"); } print(new Date - t0); } f();
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•