Closed Bug 1942919 Opened 1 year ago Closed 7 months ago

Measure performance impact of removing asm.js

Categories

(Core :: JavaScript: WebAssembly, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: rhunt, Unassigned)

References

Details

We would like to deprecate asm.js and remove it from our code base. This would reduce the amount of code we need to support. We do see usage trending downward overtime. Right now we're at about 0.15% of page loads using asm.js [1].

The nice part about removing asm.js support is that it's still valid JS and so the code still works, but will be slower. How much slower will determine when we can remove support or not.

I think it'd be useful to find usage of asm.js on the web and measure how much slower it is when we disable asm.js. The javascript.options.asmjs can help here.

The chromestatus link also has a sample of top sites that use asm.js that we can look through.

[1] https://chromestatus.com/metrics/feature/timeline/popularity/473

See Also: → 1939324
See Also: → 1876164
Depends on: 1980396

I've done some ad-hoc measurements of asm.js games from chromestatus top links and couldn't observe a difference with/without asm.js.

I also found the MASSIVE asm.js benchmark and was able to run it with/without asm.js. This is probably the absolute worst case for asm.js deprecation. Results are here. Score reductions were anywhere from 25% to 90%.

We've gathered enough data for now.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
See Also: → 2002635
You need to log in before you can comment on or make changes to this bug.