lua-users home
lua-l archive

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


On 06/18/2018 11:33 PM, Luiz Henrique de Figueiredo wrote:
> Lua 5.4.0 (work2) is now available for testing at
>         http://www.lua.org/work/lua-5.4.0-work2.tar.gz
> [...]
>
> The focus of Lua 5.4.0 is performance. We're especially interested in
> feedback about its performance but all feedback is welcome. Thanks.
> --lhf


5.4.0 vs 5.3.4, heavy table usage, time in seconds (less is better)

5.3.4 / 5.4.0

17.232 / 16.104  -- 5.4_speed = 5.3_speed * 107.0%
1333.64 / 1429.24  -- 5.4_speed = 5.3_speed * 93.3%

For first test case I've done three runs of each version. Times does not
differ. For second test case I've done second run for 5.4.0 version
to assure that execution is really slower. First run time was 1457.46s.

Benchmark is reformatting source code for given set of Lua files.
Formatter spends 30% to 60% of time in each run for merging text
chunks. This produces a lot of "garbage" memory.

First test case contains some typical files, 38 files, ~ 1 MiB total
size. Second case is "survival" test with 2.2k files, ~ 101 MiB total
size. Second test set includes first test set. Contains more
machine-generated Lua files.

OS GNU/Linux, 14.04.1-Ubuntu, kernel 3.19.0-32-generic.

-- Martin