Closed Bug 1669306 Opened 5 years ago Closed 5 years ago

jsapi-tests subtests have very high overhead

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: sfink, Assigned: sfink)

References

Details

Attachments

(1 file)

I was looking at nbp's JIT ABI test. It generates a large number of subtests (sorry, this terminology doesn't really match the code). Each subtest creates a new context/runtime and global, then shuts it down at the end. The whole test takes about 2.5 minutes to run on my machine. If I remove the overhead, it takes about 0.5 seconds (a 322x speedup!).

The overhead appears to be almost entirely from compiling the self-hosted code.

Cons: (1) messy, (2) may be unnecessary once Stencil allows better caching of self-hosted code.

Pros: 322x faster for testJitABIcalls.

Blocks: 1670940
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52f41e8893b6 Allow JSAPI tests to opt-in to reuse a global and cx instead of tearing everything down and starting up every time. r=nbp
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/43f3f2c3c5ed Allow JSAPI tests to opt-in to reuse a global and cx instead of tearing everything down and starting up every time. r=nbp
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Flags: needinfo?(sphink)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: