lua-users home
lua-l archive

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


On Thu, Dec 16, 2010 at 9:52 AM, Alex Bradbury <asb@asbradbury.org> wrote:
> On 15 December 2010 18:51, Peter Cawley <lua@corsix.org> wrote:
>> On Wed, Dec 15, 2010 at 3:54 PM, Mike Pall <mikelu-1012@mike.de> wrote:
>>> Ok, so loading (unverified) bytecode is substantially faster than
>>> parsing Lua source code (around 6x). But the verifier seriously
>>> slows things down: verifying + loading bytecode is only about 20%
>>> faster than parsing Lua source code.
>>
>> The just-committed r11 should be faster.
>
> So how does the speed of verifying+loading bytecode compare to that of
> parsing Lua source code now?

For my test-case, I considered loading all 230 lua files from
http://code.google.com/p/corsix-th/source/browse/trunk#trunk/CorsixTH/Lua,
and doing so 300 times. My environment is Vista x86, 3GB RAM, Intel
Core2 Duo E8500 3.16GHz, with everything compiled with Visual Studio
2008 SP1 in release mode.

lbcv 0.2 : Loading method / time taken (seconds) / percentage of parsing time
Parsing source / 23.942566024453 / 100
Loading bytecode / 7.980790435656 / 33.333062243642
Loading + verifying bytecode / 21.137277084099 / 88.283256951285

lbcv r11 : Loading method / time taken (seconds) / percentage of plaintext time
Parsing source / 23.532019432637 / 100
Loading bytecode / 7.9609390998017 / 33.830241907588
Loading + verifying bytecode / 14.41227278886 / 61.245371779998