Firefox performance

Monkey Targets Forums/HTML5/Firefox performance

Perturbatio(Posted 2013) [#1]
Good news, firefox nightly (23) has an improved JIT compiler:

https://blog.mozilla.org/javascript/2013/04/05/the-baseline-compiler-has-landed/

I've just downloaded and tested it and can confirm that it's much much faster.


AdamRedwoods(Posted 2013) [#2]
Like the interpreter, Baseline jitcode feeds information to the existing TI engine, while additionally collecting even more information by using inline cache (IC) chains. The IC chains that Baseline jitcode creates as it runs can be inspected by Ion and used to better optimize Ion jitcode. Baseline jitcode never becomes invalid, and never requires recompilation. It tracks and reacts to dynamic changes, adding new stubs to its IC chains as necessary. Baseline’s native compilation and optimized IC stubs also allows it to run 10x-100x faster than the interpreter. Baseline also follows Ion’s calling conventions, and uses the C stack instead of the interpreter stack. Finally, the design of the baseline compiler is much simpler than either JaegerMonkey or IonMonkey, and it shares a lot of common code with IonMonkey (e.g. the assembler, jitcode containers, linkers, trampolines, etc.). It’s also really easy to extend Baseline to collect new type information, or to optimize for new cases.

interesting.


slenkar(Posted 2013) [#3]
yep its quite a bit faster bro, thanks for the heads up