TM: "count the primes" testcase only 2x faster than with jit off

RESOLVED WORKSFORME

Status

()

--
enhancement
RESOLVED WORKSFORME
10 years ago
7 years ago

People

(Reporter: bzbarsky, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
x86
Mac OS X
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

BUILD: Current tracemonkey tip

STEPS TO REPRODUCE:
1) Save https://bugzilla.mozilla.org/attachment.cgi?id=336057
2) Run it in the JS shell

EXPECTED RESULTS: C-like speeds

ACTUAL RESULTS: twice as fast as without jit, but 6x slower than C.

SEE ALSO: Bug 451673 comment 16.

Updated

10 years ago
Severity: normal → enhancement
For what it's worth, current TM is about 6x faster than interpreted on this testcase (so only 2x slower than C).  That's not too shabby.  ;)
If we think that's good enough, we could probably just resolve this, but add the test to some sort of test suite, ideally.
In current JS shell:
Interp: 3868.220 ms
-j:     4042.015 ms
-m:     419.207 ms
-m -n:  298.719 ms

Something regressed tracejit performance, but JM+TI is currently 13x faster than interp.
Blocks: 467263
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.