Closed Bug 1750578 Opened 4 years ago Closed 4 years ago

SpiderMonkey never terminates on JS fannkuch benchmark

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: lth, Unassigned)

References

Details

(Keywords: regression)

(Spun off from bug 1532279)

Clone https://github.com/lars-t-hansen/rust-fannkuch-js-and-wasm. Edit js-benchmark.js and replace print with console.log. Run node js-benchmark.js and observe that it terminates in a reasonable about of time (2-3s). Now run it in spidermonkey and observe that it does not terminate at all. (Release build off of last Friday's mozilla-central.)

I tried various combinations of switches to trigger different parts of the execution pipeline, and nothing seems to help - my patience runs out before it terminates.

In the past (see above bug), running time on SpiderMonkey has been 2-5s.

Summary: SpiderMonkey never terminates on fannkuch benchmark → SpiderMonkey never terminates on JS fannkuch benchmark

That's odd. It works fine for me; on my desktop, using the latest m-c, it takes a little over 5 seconds:

 0:00.41 /home/iain/src/central/obj-opt/dist/bin/js /home/iain/src/js-benchmark.js
556355,51
Time: 5500

(For comparison, node takes ~2.7s on this machine, so we're not great, but we're not completely broken.)

Are you sure you were running a release build? My debug build took almost a minute to run fannkuch(10), and it appears to scale exponentially, so it wouldn't surprise me if a debug build running fannkuch(11) didn't terminate in any reasonable timeframe.

Tested again now, and it does terminate (6.5s, almost 3x that of wasm and node). Searching back in my history I see I accidentally used a release-debug build last time :-(

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.