Open Bug 1811895 Opened 2 years ago Updated 11 months ago

JS demo (https://www.fxhash.xyz/generative/23074) is slower in Nightly compared to Chrome (time spent in Generators)

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Go to https://www.fxhash.xyz/generative/23074

Nightly: https://share.firefox.dev/3kv72j7
Chrome: https://share.firefox.dev/3WvQ2qq

Nightly appears to spend largish time in non-JIT path on some of the functions ("next", Bt", "nc" etc.)

(In reply to Mayank Bansal from comment #0)

Nightly appears to spend largish time in non-JIT path on some of the functions ("next", Bt", "nc" etc.)

Do you mean non-Ion?

We spend some time in Baseline code, some of it is probably due to generators like this one:

function* Bt(e, t) {
    const n = pt(e)([yn, yn, (r, s) => s])[2];
    for (let r of t) {
        let s = n(Ne, r);
        if (Z(s)) {
            s = ze(s.deref()), s !== Ne && (yield s);
            return
        }
        s !== Ne && (yield s)
    }
}
Severity: -- → S4
Priority: -- → P3
Summary: JS demo (https://www.fxhash.xyz/generative/23074) is slower in Nightly compared to Chrome → JS demo (https://www.fxhash.xyz/generative/23074) is slower in Nightly compared to Chrome (time spent in Generators)
Depends on: 1317690
You need to log in before you can comment on or make changes to this bug.