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.

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