Skip to content

Update LuaJIT #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ayende opened this issue Feb 5, 2021 · 0 comments
Open

Update LuaJIT #106

ayende opened this issue Feb 5, 2021 · 0 comments

Comments

@ayende
Copy link

ayende commented Feb 5, 2021

Just FYI, certain scripts can cause LuaJIT's string hashing to go into O(N^2) mode

This was fixed here: LuaJIT/LuaJIT#555

But the LuaJIT version bundled with wrk2 is a lot older.

Sample scenario:

local cnt = 0
local prefix = nil -- change to '' for perf boost 

request = function ()
    c = c + 1
    local f = string.format('aaaa-%s-%6d-zzzz', prefix, c)
     return wrk.format(nil, '/run?id=' .. f)
end

This will hit the issue and cause wrk2 to slowly become slower and slower over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant