[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Fastest way to determine number is integer in plain Lua
- From: KHMan <keinhong@...>
- Date: Sat, 08 Nov 2008 10:35:53 +0800
Alexander Gladysh wrote:
Thanks to everyone who answered my question!
Thanks for the benchmarks, it's always nice to see real data...
[snip]
lua
-----------------------------------------------------------------------------
name | rel | delta | abs / iter = ms per iteration
-----------------------------------------------------------------------------
noop_int | 1.0000 | 0.0000 | 8.83 / 50000000 = 0.176600 ms
...
A minor problem... my brain keeps on doing a mental double-take
whenever I see "ms", because I keep interpreting that as
milliseconds. "ns" might be easier for the brain to interpret,
because for microseconds, one must compare fractions, while for
nanoseconds, one can look at the integer portion and quickly get
an idea of its magnitude. But it's a minor thing.
Thanks again for keeping the list supplied with benchmark data!
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia