To test how fast code the Scala.js compiler generates, we ported a benchmark suite from Dart and rewrote the benchmark code in idiomatic Scala. It has three separate benchmarks, testing various aspects of the compiler.
A lower bar height means better performance.
As you can see the use of Google Closure compiler sometimes degrades performance, because GCC’s focus is optimizing
collections and another one using native
js.Array, which gives a clear performance boost in this test.