Closed Bug 452499 Opened 16 years ago Closed 13 years ago

TM: jit doesn't speed up this testcase for some reason

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bzbarsky, Unassigned)

Details

Attachments

(1 file)

Attached file js shell testcase
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).
Priority: -- → P4
blocking1.9.1, P3.  Assigning to bkap.
Flags: blocking1.9.1+
Priority: P4 → P3
Assignee: general → mrbkap
OS: Mac OS X → All
Hardware: PC → All
Version: unspecified → Trunk
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.
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?
It needed to block while -j was slower than interpreter, I think.
a similar speed increase for me, so I don't think this blocks
Flags: blocking1.9.1? → blocking1.9.1-
Assignee: mrbkap → general
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: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: