8
$\begingroup$

Ok, this might sound a bit stupid, but I find these kind of statements "x % slower/faster" pretty confusing.

Let's say I have algorithm A and algorithm B. Algorithm A takes 50 seconds to complete a task and algorithm B takes 25 seconds.

Now I could make the following statements:

  1. "B is twice as fast as A"
  2. "B is 100 % faster than A" (speedA - speedB)/speedB = 100%
  3. "A is 50 % slower than B" (speedA - speedB)/speedA = 50%

Am I right about this?

  • 1
    Talk about confusing? Out here in the real world we see things like "ten times less" and so on.2012-08-25

1 Answers 1

6

Yes, you're right about that.

In an ideal world, possibly, we would always use logarithms rather than ratios (percentages) when measuring relative differences. Then, supposing we standardized on the base-2 logarithm we could say

B is $1$ doubling faster than A.

A is $1$ doubling slower than B.

or if we used base-10 logarithms:

B is $0.3$ decades faster than A. ($\log_{10}\frac{50}{25}=0.3$)

A is $0.3$ decades slower than B. ($\log_{10}\frac{25}{50}=-0.3$)

The problem with that "ideal" world is that everyone who needed to speak about relative differences (a rather large fraction of the population) would have to know how logarithms work, which may or may not be a realistic goal.