Sn0rt opened a new issue, #10663: URL: https://github.com/apache/apisix/issues/10663
### Current Behavior We have recently configured and used the jwt-auth.lua plug-in on the C-side gateway routing. In order to ensure excellent performance, we have conducted long-term stress testing and performance tracking on this plug-in. It was found that some codes of the jwt-auth.lua plug-in have obvious performance problems. ```lua Line 392: jwt_obj = jwt:verify_jwt_obj(auth_secret, jwt_obj) ``` There is an obvious delay here. (Use RS256 public key and mocking.lua plug-in to block downstream) We performed a stress test with 120 concurrency in the 2c2g k8 container. Compared with commenting out this piece of code, the delay was about 20ms. Do we have any optimization suggestions for this area? Thank you! ### Expected Behavior better performance ### Error Logs _No response_ ### Steps to Reproduce N/A ### Environment - APISIX version (run `apisix version`): 2.15.1 - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
