Skip to content
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

help request: I test the performance between apisix and openresty alone, apisix performance is poor (qps 22000 vs 35000), I think lua code consumes much performance. #11725

Open
jiangdongzi opened this issue Nov 8, 2024 · 1 comment
Labels
question label for questions asked by users

Comments

@jiangdongzi
Copy link

Description

11.38% [kernel] [k] __do_softirq
2.34% libc-2.17.so [.] __memcpy_ssse3_back
1.68% openresty [.] ngx_hash_find
1.65% libc-2.17.so [.] __libc_writev
1.58% libluajit-5.1.so.2.1.ROLLING [.] lj_BC_TGETS
1.53% libpthread-2.17.so [.] __libc_recv
1.31% [kernel] [k] system_call_after_swapgs
1.18% [kernel] [k] _raw_spin_unlock_irqrestore
1.03% libluajit-5.1.so.2.1.ROLLING [.] lj_str_new
0.94% libc-2.17.so [.] _int_malloc
0.90% [kernel] [k] copy_user_enhanced_fast_string
0.87% libluajit-5.1.so.2.1.ROLLING [.] hashkey.isra.0
0.83% libc-2.17.so [.] __memset_sse2
0.81% openresty [.] ngx_http_get_indexed_variable
0.76% libc-2.17.so [.] __GI___getsockopt
0.76% [kernel] [k] tcp_ack
0.66% openresty [.] ngx_http_parse_header_line
0.62% openresty [.] ngx_vslprintf
0.62% libluajit-5.1.so.2.1.ROLLING [.] gc_sweep
0.58% openresty [.] ngx_palloc
0.57% [kernel] [k] ipt_do_table
0.56% [kernel] [k] fget_light
0.56% [kernel] [k] _raw_qspin_lock
0.54% openresty [.] ngx_http_proxy_create_request
0.53% libluajit-5.1.so.2.1.ROLLING [.] lj_tab_newkey
0.52% libluajit-5.1.so.2.1.ROLLING [.] lj_alloc_malloc
0.48% libluajit-5.1.so.2.1.ROLLING [.] lj_alloc_free
0.48% [kernel] [k] __netif_receive_skb_core
0.48% libluajit-5.1.so.2.1.ROLLING [.] lj_BC_JLOOP
0.47% openresty [.] ngx_http_upstream_process_header
0.47% openresty [.] ngx_http_log_escape.isra.0
0.46% [kernel] [k] pvclock_clocksource_read
0.46% openresty [.] ngx_http_parse_request_line
0.46% openresty [.] ngx_http_log_handler
0.45% libc-2.17.so [.] _int_free
0.45% [kernel] [k] tcp_recvmsg
0.44% libluajit-5.1.so.2.1.ROLLING [.] lj_BC_CALL
0.44% libluajit-5.1.so.2.1.ROLLING [.] propagatemark
0.43% [kernel] [k] tcp_transmit_skb
0.42% libc-2.17.so [.] __memcmp_sse4_1
0.41% openresty [.] ngx_epoll_process_events

from perf top print

Environment

  • APISIX version (run apisix version):
  • 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):
@jiangdongzi
Copy link
Author

no plugin is enabled , error log level is warn

@dosubot dosubot bot added the question label for questions asked by users label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant