Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

100% slower! And nothing more... #79

Closed
xfix opened this Issue · 4 comments

4 participants

@xfix

Run following test: http://jsperf.com/o#run

For some second test says "100% slower" even if it is slower than this.

@jdalton
Collaborator

Here is how we currently do it:

percent = Math.round((1 - hz / fastest[0].hz) * 100);
text = isFinite(hz) ? percent + '% slower' : '';

so using real numbers (pseudo code) it's

// 2ops-per-sec / 20 ops-per-sec => 0.1
// 0.1 * 100 => 10% (2 is 10% of 20)
// 1 - 0.1 => 0.9 * 100 => 90% slower
percent = Math.round((1 - (2ops / 20ops) * 100); // 90
text = isFinite(hz) ? percent + '% slower' : ''; // 90% slower

Maybe we should calculate how many times slower instead of using a percentage?

@jdalton jdalton was assigned
@ainthek

hint: @jdalton : analyze browser scope results providing ops per secs if needed .
we do this.

@psq
psq commented

@jdalton showing how many times slower would be more useful especially in cases such as http://jsperf.com/array-obj-exists

@jdalton jdalton added enhancement and removed bug labels
@jdalton
Collaborator

I'm open to PRs but probably won't be tackling this anytime soon.

@jdalton jdalton closed this
@jdalton jdalton added the wontfix label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.