Closed Bug 484584 Opened 15 years ago Closed 15 years ago

peacekeeper test case slower when traced successfully

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 479110

People

(Reporter: sayrer, Assigned: gal)

Details

Attachments

(3 files)

The attachment on the tracemonkey branch is slower than mozilla-central.
tracemonkey JIT:         8475 ops/sec
tracemonkey no-JIT:      9000 ops/sec
mozilla-central no-JIT:  9050 ops/sec
mozilla-central JIT:     10450 ops/sec
Attached image tracevis png
Good testcase & analysis data. Thanks.
Assignee: general → gal
Cause: massive side-exits. You can easily see this with TRACEMONKEY=stats in the shell:

recorder: started(5), aborted(3), completed(2), different header(0), trees trashed(0), slot promoted(0), unstable loop variable(0), breaks(0), returns(0), unstableInnerCalls(0)
monitor: triggered(121177), exits(121177), type mismatch(0), global mismatch(0)
whale:src gal$ TRACEMONKEY=stats ./Darwin_DBG.OBJ/js -j x.js
benchmark.runTest Start running test.
benchmark Elapsed time 1077. Operations: 10000. Operations per second: 9285.051067780872
recorder: started(4), aborted(1), completed(4), different header(0), trees trashed(0), slot promoted(0), unstable loop variable(0), breaks(0), returns(0), unstableInnerCalls(0)
monitor: triggered(6), exits(6), type mismatch(0), global mismatch(0)

Yep, this is a dup (note: score is for a debug build here).
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
OPT scores with mismatch patch applied:

benchmark.runTest Start running test.
benchmark Elapsed time 679. Operations: 10000. Operations per second: 14727.540500736375
whale:src gal$ ./Darwin_OPT.OBJ/js x.js
benchmark.runTest Start running test.
benchmark Elapsed time 1043. Operations: 10000. Operations per second: 9587.727708533079
whale:src gal$ 

The rest is array overhead in join.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: