Closed Bug 765631 Opened 13 years ago Closed 12 years ago

Ionmonkey: Ion 2x slower on reduced ss-format-tofte

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: h4writer, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [ion:p2])

The following testcase is 2x slower on Ion compared to JM Date.prototype.formatDate = function(input, time) { function a() { if (beforeNY <= 2 && weekday <= 2 - beforeNY) { if (arrayExists(switches, ia[ij])) { ia[ij] = eval(ia[ij] + "()"); } } } } var date = new Date("1/1/2007 1:11:11"); for (i = 0; i < 400000; ++i) { var shortFormat = date.formatDate("Y-m-d"); } JM (build-32/js --no-ion): 0.518s Ion (build-32/js): 1.008s
Needs argument object support.
I can still reproduce this - it's not clear how much it affects our SunSpider score but it could be worth looking into.
Blocks: IonSpeed
Whiteboard: [ion:p2]
Times are now (on x86_64): ion: 260ms jm+ti: 255ms v8: 43ms
I get 186 ms now without any flags flags and with --no-ion.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.