jsbench-me icon indicating copy to clipboard operation
jsbench-me copied to clipboard

wrong math

Open psiho opened this issue 2 years ago • 2 comments

Can confirm, something seems to be off. In my case (https://jsbench.me/3pkjlwzhbr/1), it says that map.has is "100% slower", although is has the same amount of operations per second as the fastest run (set.has). Meanwhile obj[target] has also the same amount of operations but is only "0.56% slower" (which makes sense since the number is rounded): jsbench-calc-error

Originally posted by @benjaminsuch in https://github.com/psiho/jsbench-me/issues/66#issuecomment-1611134474

psiho avatar Aug 23 '23 11:08 psiho

@benjaminsuch, I moved your comment to separate issue as it is not related.

I tried to reproduce it but failed. Can you please tell me two thibngs:

  1. what browser/OS are you using?
  2. can you reproduce the problem every time?

... because, I tried your link above and my results are ok: image

psiho avatar Aug 23 '23 11:08 psiho

Most of the time it works fine. But every once in a while the "x% slower" calculation is wrong.

I'm using Chrome on Windows 10.

But now that I think about it, it could be a benchmarkjs issue, because I have the same issue on other benchmark-providers that use benchmark.js.

benjaminsuch avatar Aug 26 '23 18:08 benjaminsuch