In the nightly builds of Firefox, the performance of JIT compilation has significantly increased.

In nightly builds Firefox included updated JIT compiler, developed under the codename WarpBuilder. An option "javascript.options.warp" is proposed in about:config to activate the new JIT.
It is noted that WarpBuilder is just the first step towards incorporating new optimizations into the browser, which are planned to be implemented over the next year.

The new JIT allows for improved performance of the SpiderMonkey JavaScript engine by reducing internal type information tracked within the engine and applying intermediate code caching techniques (CacheIR), previously proposed in the "baseline" bytecode interpreter, which occupies an intermediate niche between a standard interpreter and a ahead-of-time JIT compiler. These changes significantly simplified the JIT architecture, improved responsiveness, reduced page load times, and lowered memory consumption.

It is noted, allowing the new JIT to resolve many issues of the old JIT IonBuilder, such as:

  • Implementation complexity and potential security issues;
  • Additional overhead for Baseline/C++ code;
  • Excess specialization leading to unnecessary recompilations;
  • Formation of intermediate code MIR (Middle-level IR) in the main thread (in WarpBuilder, the main assembly of intermediate code is moved to a separate thread);
  • Additional memory consumption for storing type and ObjectGroups data.

On average, tests assessing performance based on visual metrics show a speedup of 5-15% when using WarpBuilder. The Speedometer test score increased by 10%. Testing on real sites showed a reduction in loading times for Google Docs by 20%, the SpeedIndex when opening the Android section on Reddit improved by , pdfpaint started working faster by 13%. Memory consumption in the 18%tp6 test decreased by 8%. Metrics in the developer tools (devtools perf) also demonstrated an 8% reduction in memory consumption. 🥇In the nightly builds of Firefox, JIT compilation performance has notably increased | ProHoster

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster