Open Bug 1818669 Opened 3 years ago Updated 1 year ago

JS demo (https://www.fxhash.xyz/generative/slug/playtime) is 2.5x slower in Nightly compared to Chrome

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Summary: JS demo (https://www.fxhash.xyz/generative/slug/playtime) spends time in non-ion path in a lot of functions → JS demo (https://www.fxhash.xyz/generative/slug/playtime) spends time in non-ion path in a lot of functions and is slower compared to Chrome
Severity: -- → N/A
Priority: -- → P3

Chrome: https://share.firefox.dev/44b0QPk (2 seconds)
Nightly: https://share.firefox.dev/3D2iAQS (4.5 seconds)

Summary: JS demo (https://www.fxhash.xyz/generative/slug/playtime) spends time in non-ion path in a lot of functions and is slower compared to Chrome → JS demo (https://www.fxhash.xyz/generative/slug/playtime) is 2.5x slower in Nightly compared to Chrome

25% improvement by bug 1850305 (4.5->3.3s) : https://share.firefox.dev/47sIHxQ

Depends on: 1850305

We spend 57% of our time in t.prototype.isAClone:

t.prototype.isAclone = function(t) {
  if (t.vertices.length === this.vertices.length) {
    for (var e = 0; e < this.vertices.length; e++) {
      if (t.vertices[e].x !== this.vertices[e].x && t.vertices[e].y !== this.vertices[e].y) {
        return false;
      }
    }
    return true;
  }
  return false;
}
You need to log in before you can comment on or make changes to this bug.