[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Poor man's benchmarking issue - help needed
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 31 Aug 2011 14:32:32 +0400
On Wed, Aug 31, 2011 at 12:50, Lorenzo Donati
> On 31/08/2011 10.17, Alexander Gladysh wrote:
>> On Wed, Aug 31, 2011 at 11:03, Lorenzo Donati
>> <email@example.com> wrote:
>>> According to the following benchmarks, built-in math.floor and math.ceil
>>> slower than their counterpart rewritten using the core % operator!
>> That is to be expected. C function call is relatively slow.
> Do you mean that floor and ceil are really slower?
C function calls are, when compared with VM instruction execution.
You may find this helpful:
Also, read output of luac -l yourscript.lua
This doc may help with reading: