Files
swift-mirror/utils/cmpcodesize
Andrew Trick 4fe9f06923 cmpcodesize: fix the sign of the percentage change.
The formula for percentage change in _any_ metric, without exception, is:

(new_value - old_value) / old_value

Some people flip the sign of their result, presumably because they
associate "positive" with "good" or want to render a graph where
"upward" bars are "good". Making this mistake consistently leads to
tremendous confusion.

This is particularly horrible when people confuse time and speed,
which are inverse metrics. Flipping the sign in order to present the
inverse metric is commonly done, but is mathematically incorrect and
is often extremely misleading. That's why it's so important to use a
standard (mathematically correct) convention for reporting a change in
percentage of any metric.

So, if I triple the size of the code, I'll now see +200%, not -200% which is
mathematically impossible and shear nonsense.
2018-02-09 13:36:03 -08:00
..
2017-01-06 16:41:22 +01:00
2017-01-06 16:41:22 +01:00