Thanks @sjrd for the pointer. I always forget how easy it is to build Scala.JS locally (in other words: good job!). I’ve built and published the benchmarks for Scala 2.13.2-bin-b4428c8.
…and I’ve got some mixed news: there are some cases where the new Vector implementation is a significant performance regression in JS-land. Prepending/appending elements is nearly 2x slower (i.e. 3x the original time),
Vector.builder is a bit faster,
.flatMap is significantly faster (40% duration reduction).
To reproduce my results,
- open up two tabs: 2.13.1 & 2.13.2-bin-b4428c8
- double-click one of the
Vectorbenchmarks (to deselect everything else) and then select the other two
- switch tabs, repeat, compare results
Feel free to PR me any new benchmarks you’d like to see and I can recompile and republish. Each benchmark page has a link to the source and you can see they’re pretty concise and easy to write.