Hacker News new | ask | show | jobs
by kaashif 29 days ago
Interesting how people interpret the word faster differently.

To you, 2x faster means 2x the work done in the same time, but 25% faster means 1.33x the work done in the same time.

I see this a lot - in software people interpret 50% faster as a 50% reduction in time taken.

If a car is 50% faster, I hope people would universally interpret that as e.g. 20 to 30 mph. But if I asked people how long would a 1 hour journey take if it were 50% faster, I bet a lot would say 30 mins, because it kind of seems like that's what I mean.

2 comments

Performance is for the user. If the user has told you that we have an SLA that requires this operation to complete in 10s, but it currently runs in 30 seconds, and your first set of changes gets it to 15s, what improvement are you going to report to the user?

You're going to report in the time domain. In which case 1/2 off the time is 50%.

One of the benchmarking tools I used to use reported 50k ops/sec -> 200k ops/sec as 75% faster. Which definitely IS wrong but I know how he got there. You see you don't count operations per second, you run the loop ?? thousand times and see how many milliseconds it takes. Then you convert that to ops/sec. If you compare before and after while still in the time domain, that's 75%. But if you report throughput right next to a ratio in the time domain you're gonna have a bad time.

When that tool stopped being maintained, the person who replaced it wisely switched to reporting in multipliers. 4x faster is hard to misinterpret. Though "1.1x slower" is still open to misinterpretation.

My only conclusion from this is that "faster" will be interpreted in different ways by different people. This is actually just a fact and can't be disputed, the evidence is too strong.

It would be even better, in your example, to report "4x ops/sec" or "0.9x ops/sec" rather than faster or slower.

50 percent faster is 2/3 time, but yes, prominent people have made this error and even doubled down on it publicly.
When you're asked to meet a time limit, that's time domain, not rate, and so improvements will be reported in the time domain.

Time domain also works for Little's Law, which is the more prevalent measure these days anyway. If you double the throughput of a server you can halve the cluster size and retain the same level of service. Which isn't 200%, it's 50%.

If an object moves across a space 50% faster, it finishes in 2/3 of the time. It's not up for debate, it's not ambiguous. To say anything else is wrong.

> Which isn't 200%, it's 50%.

Okay.

Again, you’re insisting that rate is only ever a matter of quantity per unit time, when most user facing work is measured in time to complete a single task, or batch. There are more users than developers by a vast margin, otherwise we could not sustain our high salaries.

Additionally, in cloud computing we do not give a shit about tasks per second, but cost per day, which is how many CPUs we need for a set of tasks, which from Little’s Law is derived from seconds per task, not tasks per second.

And yet I’m the one who is wrong, apparently.

You're wrong if you are contradicting what is fact, yes. It's also morally wrong to use contrived logic to state big impressive numbers to lay people like you seem to be interested in doing. "We got 100% better performance" when you only reduced latency by half, nevermind throughput, is dishonest. That's the kind of lie you seem to be defending. If I'm wrong then I don't understand the point of your posts.