-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Somehow, the "switch and template string"-based snippets of this benchmark perform a lot worse on perf.zone than on the other benchmarking sites (see screenshots and links below).
I don't know if that means that there is something preventing the code from being properly optimized, or something that creates extra overhead, but it's strange. I tried measuring performance with the DevTools, but the memory/node graphs don't really clarify anything (neither memory allocation nor garbage collection seems to line up with the different sub-benchmarks in any of the tested sites).
https://jsperf.com/join-vs-template-venryx
http://jsbench.github.io/#7f03c3d3fdc9ae3a399d0f2d6de3d69f
http://jsben.ch/9DaxR
https://run.perf.zone/view/Join-vs-Template-Venryx-1512492228976
Chromium
Firefox
This problem is not present in Firefox, but I add the results just for the sake of completion: (And yes, here jsben.ch is the benchmarking site with weird results, but that's not really a problem for perf.zone)