ngx_reorder_accept_events function cause a 10% performance degradation in benchmark tests
Author: denisecheng1208Created Nov 15, 2024Updated Sep 16, 2026
Recently, when I was comparing the performance of different versions of nginx, I found that the commit https://github.com/nginx/nginx/commit/96c342e56035a9676180d03b4659d5b05b9c6b07#diff-cb075cb5165aa6a06ad955c763fec31475a2dd90332922f53deb93907d59ec8f caused a 10% performance degradation. The benchmark tool I used was pts/nginx, a well-known performance benchmark suite. You can download it in https://github.com/phoronix-test-suite/phoronix-test-suite.
Test result(RPS) before this commit Short_Connection-500: 62057.79 Short_Connection-1000: 62570.02
Test result(RPS) after this commit Short_Connection-500: 56609.88 Short_Connection-1000: 56534.6
Source: nginx/nginx