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
Labels
question
label for questions asked by users
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
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: