Closed
Bug 452499
Opened 17 years ago
Closed 14 years ago
TM: jit doesn't speed up this testcase for some reason
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bzbarsky, Unassigned)
Details
Attachments
(1 file)
1.26 KB,
text/plain
|
Details |
On the attached testcase we do no better than interpreted, at least in the JS shell. The log says we fall off the jit on the inner for loop:
Abort recording (line 44, pc 88): JSOP_ENTERBLOCK.
but we should still be jitting the inner loop and getting a benefit from that, no? In any case, this testcase is a little slower in optimized JS shell with -j than without -j.
In a debug shell it's 2x slower, but that doesn't matter as much, of course.
Word of warning: this generates a _huge_ log file with TRACEMONKEY=verbose (over about 10 megs a second, and this slows it down enough that we hit 4 gigs before the script finishes).
Updated•17 years ago
|
Priority: -- → P4
Comment 1•17 years ago
|
||
blocking1.9.1, P3. Assigning to bkap.
Flags: blocking1.9.1+
Priority: P4 → P3
Updated•17 years ago
|
Assignee: general → mrbkap
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Version: unspecified → Trunk
Comment 2•17 years ago
|
||
For what it's worth, here are some new numbers:
mrbkap@grasshopper(...opt-obj)$ ./js ~/tmp/test.js
Time taken: 18971
mrbkap@grasshopper(...opt-obj)$ ./js -j ~/tmp/test.js
Time taken: 12541
so we've definitely gotten better.
Comment 3•17 years ago
|
||
Does this still need to block? Also, I'm not sure if I'm really the right assignee for this bug.
Flags: blocking1.9.1+ → blocking1.9.1?
![]() |
Reporter | |
Comment 4•17 years ago
|
||
It needed to block while -j was slower than interpreter, I think.
Comment 5•17 years ago
|
||
a similar speed increase for me, so I don't think this blocks
Flags: blocking1.9.1? → blocking1.9.1-
Updated•16 years ago
|
Assignee: mrbkap → general
Comment 6•14 years ago
|
||
Current js shell:
Interp: 21016.560 ms
-j: 21446.513 ms
-m: 2939.768 ms
-m -n: 2167.218 ms
JM+TI is an order of magnitude faster than plain interp and tracejit. Seems plenty sped up for the sake of this bug!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•