jsbench-me
jsbench-me copied to clipboard
wrong math
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):
Originally posted by @benjaminsuch in https://github.com/psiho/jsbench-me/issues/66#issuecomment-1611134474
@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:
- what browser/OS are you using?
- can you reproduce the problem every time?
... because, I tried your link above and my results are ok:
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.