lua-users home
lua-l archive

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


On 01/06/2019 03.31, Soni "They/Them" L. wrote:
local num_iterations = 1e8
local table_width = 1e8
is this measuring GC performance or RNG performance?

Neither.

With these settings, roughly 75% of the slots get at most 1 assignment,
or only about 25% of the tables will become garbage. >98% of the slots
are assigned to less than 4 times – GC is bored. And the RNG just gets lost in the noise of 1e8 table creations and all that entails…

-- nobody