Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

example/jsperf/ui.js: report both slower by xx% and slower by a factor of X #161

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

GerHobbelt
Copy link
Contributor

(shown as 51% slower (✕ 2.0)) as the computer is better at calculating both relative indicators than we are, and we can use our brain for the conclusions rather than the calculus.

(Of course one might want to see 'faster by a factor of X' instead, but this was more useful for my discussions.)

Don't know if you want this or want to keep the jsperf example as-is.

Anyway, thanks for all the work and the quick updates of the repo,

Cheers,
Ger

@@ -560,10 +560,11 @@
if (_.indexOf(fastest, bench) > -1) {
// mark fastest
addClass(cell, text);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use a space, , instead of ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent auto-wrapping the line between the times character and the factor itself, which would make it hard to read. This happened to me with some tests run using the customized jsperf example, so it'll happen to others too, I'm sure. ;-) Hence the non-breaking-space.

@jdalton jdalton force-pushed the master branch 4 times, most recently from da00022 to e156ebc Compare August 2, 2016 03:11
@jdalton jdalton force-pushed the master branch 2 times, most recently from b08353e to f118abf Compare August 8, 2016 16:47
@jdalton jdalton force-pushed the master branch 3 times, most recently from 572f88b to 10319e4 Compare September 26, 2016 04:41
@jdalton jdalton force-pushed the master branch 4 times, most recently from 7d00d55 to 115bc9d Compare October 6, 2016 15:30
@jdalton jdalton force-pushed the master branch 4 times, most recently from 2f014b6 to c732675 Compare November 22, 2016 05:35
@jdalton jdalton force-pushed the master branch 2 times, most recently from f263303 to a37c36c Compare December 24, 2016 15:51
@jdalton jdalton force-pushed the master branch 2 times, most recently from fa368bc to 7c31726 Compare February 6, 2017 06:03
@jdalton jdalton force-pushed the master branch 2 times, most recently from e87b3c3 to 70a8b8b Compare March 6, 2017 02:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

4 participants