openresty / openresty/luajit2

upgrading the luajit the CPU increased by 20% ,performance drop

Open
#175 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.4k
Forks
252
Avg merge
7d 11h
Merged PRs (30d)
3

Description

client:
ab -n10000000 -c40 -k http://www.hello.com/

server:
openresty-1.13.6.2
LuaJIT-2.1-20180420
some lua scripts

upgrading the luajit version to luajit2-2.1-20220411 , the CPU increased by 20%, QPS and response time did not change(compared to the old luajit version)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the comparison with the provided ab command against OpenResty 1.13.6.2, LuaJIT-2.1-20180420, and luajit2-2.1-20220411. The issue does not include the Lua scripts or a named code location, so investigate the CPU regression with profiling; done means identifying and addressing the regression while preserving the reported QPS and response time.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.