lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If what everyone here say is true, "Lua Programming Gems" is wrong
(unless it is trying to *redefine* the meaning of % faster)

Quote from chapter 2, Lua Performance tips :
https://www.lua.org/gems/sample.pdf

When I say that a program is "X% times faster" than another it means
that it runs in % less time. (A program 100% faster would take no time
to run).  When I say that a program is "X% times slower" than another
I mean that the other is % faster.  (A program 50% slower means that
it takes twice the time).

--

I ALWAYS use speed ratio, say 1.143X, to avoid this ambiguity