lua-users home
lua-l archive

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


Hi,

Sam Roberts wrote:
> It occurs to me that long double is big enough to represent a UINT32
> without truncation.

Only very few CPUs have hardware support for long double. Most
compilers inline calls to emulation library functions for every
single operation. One word: sloooow.

> - can anybody suggest some simple benchmarks to get a feel for what, if
>   any, impact this has on general (non-numeric intensive) lua
>   performance?

Try this trivial (numeric intensive) test first:

  for i=1,1e9 do end

If this terminates before you fall asleep then check:
  http://shootout.alioth.debian.org/

Bye,
     Mike