Skip to content

Strange results in Chromium compared to other benchmarking sites #8

@JobLeonard

Description

@JobLeonard

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

image
image
image
image

JSPerf:
image

jsbench.github.io:
image

jsben.ch: (WTF?!)
image

perf.zone:
image

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)

image
image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions