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

perf(router): increase lua_regex_cache_max_entries and show warning if too small #9624

Merged
merged 6 commits into from
Nov 1, 2022

Conversation

mayocream
Copy link
Contributor

Summary

When a user sets too many regex routes and lua_regex_cache_max_entries is set too low (or kept at default 1024), a performance issue might occur due to regex trashing.

OpenResty claims that it will emit a warning when the limit has been exceeded, but it doesn't.

Fix FTI-4455

@mayocream mayocream requested a review from a team as a code owner October 27, 2022 05:27
@mayocream mayocream changed the title chore(regex): increase lua_regex_cache_max_entries and show warning if too small chore(router): increase lua_regex_cache_max_entries and show warning if too small Oct 27, 2022
@mayocream mayocream changed the title chore(router): increase lua_regex_cache_max_entries and show warning if too small perf(router): increase lua_regex_cache_max_entries and show warning if too small Oct 27, 2022
CHANGELOG.md Outdated Show resolved Hide resolved
kong/router/traditional.lua Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.15ms    1.98ms 207.96ms   88.68%
    Req/Sec    33.62k     8.38k   53.36k    61.19%
  Latency Distribution
     50%  469.00us
     75%    0.87ms
     90%    3.48ms
     99%    8.72ms
  5025197 requests in 30.10s, 1.05GB read
Requests/sec: 166954.24
Transfer/sec:     35.82MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  33.62ms   88.28%
    Req/Sec    32.79k     8.62k   52.82k    59.93%
  Latency Distribution
     50%  466.00us
     75%    0.96ms
     90%    3.53ms
     99%    9.20ms
  4909365 requests in 30.10s, 1.03GB read
Requests/sec: 163105.37
Transfer/sec:     35.00MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.86ms  40.28ms   88.17%
    Req/Sec    32.93k     8.65k   55.03k    61.92%
  Latency Distribution
     50%  470.00us
     75%    0.94ms
     90%    3.54ms
     99%    9.11ms
  4921868 requests in 30.10s, 1.03GB read
Requests/sec: 163521.52
Transfer/sec:     35.09MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164527.04
Latency Avg: 1.17ms    Max: 207.96ms
   P90 (ms): 3.48, 3.53, 3.54
   P99 (ms): 8.72, 9.2, 9.11
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.78ms  29.92ms   88.72%
    Req/Sec    30.81k     7.71k   48.81k    61.32%
  Latency Distribution
     50%  497.00us
     75%    1.00ms
     90%    3.34ms
     99%    8.85ms
  4605051 requests in 30.10s, 0.96GB read
Requests/sec: 152995.01
Transfer/sec:     32.83MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  30.49ms   88.63%
    Req/Sec    30.75k     7.87k   54.92k    61.13%
  Latency Distribution
     50%  512.00us
     75%    0.98ms
     90%    3.52ms
     99%    9.42ms
  4604230 requests in 30.10s, 0.96GB read
Requests/sec: 152967.66
Transfer/sec:     32.82MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  45.69ms   88.85%
    Req/Sec    30.82k     8.16k   58.35k    60.11%
  Latency Distribution
     50%  495.00us
     75%    1.02ms
     90%    3.49ms
     99%    9.60ms
  4611179 requests in 30.10s, 0.97GB read
Requests/sec: 153199.34
Transfer/sec:     32.87MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153054.00
Latency Avg: 1.20ms    Max: 45.69ms
   P90 (ms): 3.34, 3.52, 3.49
   P99 (ms): 8.85, 9.42, 9.6
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.78ms  30.15ms   90.48%
    Req/Sec    26.76k     6.29k   41.52k    60.33%
  Latency Distribution
     50%  615.00us
     75%    1.08ms
     90%    2.78ms
     99%    8.90ms
  4008257 requests in 30.10s, 860.06MB read
Requests/sec: 133167.57
Transfer/sec:     28.57MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.87ms  33.19ms   90.49%
    Req/Sec    26.75k     6.43k   49.73k    60.52%
  Latency Distribution
     50%  612.00us
     75%    1.11ms
     90%    2.90ms
     99%    9.56ms
  3998521 requests in 30.10s, 857.98MB read
Requests/sec: 132847.45
Transfer/sec:     28.51MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.82ms  32.77ms   90.33%
    Req/Sec    26.70k     6.67k   42.94k    61.40%
  Latency Distribution
     50%  617.00us
     75%    1.09ms
     90%    2.89ms
     99%    9.22ms
  3999049 requests in 30.10s, 858.09MB read
Requests/sec: 132861.99
Transfer/sec:     28.51MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 132959.00
Latency Avg: 1.21ms    Max: 33.19ms
   P90 (ms): 2.78, 2.9, 2.89
   P99 (ms): 8.9, 9.56, 9.22
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  32.95ms   87.98%
    Req/Sec    33.17k     8.85k   72.38k    60.56%
  Latency Distribution
     50%  464.00us
     75%    0.93ms
     90%    3.59ms
     99%    9.19ms
  4953785 requests in 30.10s, 1.04GB read
Requests/sec: 164579.52
Transfer/sec:     35.31MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.85ms  28.85ms   87.91%
    Req/Sec    33.06k     8.84k   54.79k    60.25%
  Latency Distribution
     50%  463.00us
     75%    0.95ms
     90%    3.60ms
     99%    9.11ms
  4940867 requests in 30.10s, 1.04GB read
Requests/sec: 164154.22
Transfer/sec:     35.22MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.84ms  32.19ms   87.87%
    Req/Sec    33.31k     8.75k   73.76k    60.63%
  Latency Distribution
     50%  470.00us
     75%    0.90ms
     90%    3.58ms
     99%    9.03ms
  4974522 requests in 30.10s, 1.04GB read
Requests/sec: 165270.86
Transfer/sec:     35.46MB
### Combined result for Kong git:master:
RPS     Avg: 164668.20
Latency Avg: 1.18ms    Max: 32.95ms
   P90 (ms): 3.59, 3.6, 3.58
   P99 (ms): 9.19, 9.11, 9.03
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.83ms  32.94ms   88.78%
    Req/Sec    30.44k     7.87k   50.74k    60.73%
  Latency Distribution
     50%  507.00us
     75%    1.03ms
     90%    3.40ms
     99%    9.17ms
  4557023 requests in 30.10s, 0.95GB read
Requests/sec: 151399.57
Transfer/sec:     32.49MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.87ms  29.71ms   88.56%
    Req/Sec    30.86k     8.31k   49.82k    58.78%
  Latency Distribution
     50%  499.00us
     75%    0.98ms
     90%    3.52ms
     99%    9.41ms
  4619596 requests in 30.10s, 0.97GB read
Requests/sec: 153478.18
Transfer/sec:     32.93MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.84ms  29.44ms   88.69%
    Req/Sec    30.84k     7.93k   51.92k    59.97%
  Latency Distribution
     50%  494.00us
     75%    1.00ms
     90%    3.43ms
     99%    9.19ms
  4614299 requests in 30.10s, 0.97GB read
Requests/sec: 153302.95
Transfer/sec:     32.89MB
### Combined result for Kong git:master:
RPS     Avg: 152726.90
Latency Avg: 1.19ms    Max: 32.94ms
   P90 (ms): 3.4, 3.52, 3.43
   P99 (ms): 9.17, 9.41, 9.19
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.79ms  35.60ms   90.51%
    Req/Sec    26.66k     6.61k   43.38k    61.20%
  Latency Distribution
     50%  606.00us
     75%    1.13ms
     90%    2.78ms
     99%    9.01ms
  3993170 requests in 30.10s, 856.83MB read
Requests/sec: 132666.09
Transfer/sec:     28.47MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.77ms  34.67ms   90.54%
    Req/Sec    26.67k     6.43k   47.46k    60.12%
  Latency Distribution
     50%  606.00us
     75%    1.12ms
     90%    2.75ms
     99%    8.94ms
  3985556 requests in 30.10s, 855.19MB read
Requests/sec: 132414.14
Transfer/sec:     28.41MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.77ms  40.96ms   90.53%
    Req/Sec    26.63k     6.20k   47.56k    61.40%
  Latency Distribution
     50%  618.00us
     75%    1.12ms
     90%    2.76ms
     99%    8.81ms
  3988204 requests in 30.10s, 855.76MB read
Requests/sec: 132501.29
Transfer/sec:     28.43MB
### Combined result for Kong git:master:
RPS     Avg: 132527.17
Latency Avg: 1.20ms    Max: 40.96ms
   P90 (ms): 2.78, 2.75, 2.76
   P99 (ms): 9.01, 8.94, 8.81
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   565.48us    1.26ms  24.35ms   87.42%
    Req/Sec   168.21k    13.88k  216.28k    64.89%
  Latency Distribution
     50%   58.00us
     75%   98.00us
     90%    2.40ms
     99%    6.34ms
  25122058 requests in 30.10s, 3.28GB read
Requests/sec: 834626.49
Transfer/sec:    111.43MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   572.27us    1.26ms  12.15ms   87.22%
    Req/Sec   153.03k     7.71k  188.61k    72.15%
  Latency Distribution
     50%   63.00us
     75%  106.00us
     90%    2.39ms
     99%    6.33ms
  22853043 requests in 30.10s, 2.98GB read
Requests/sec: 759239.93
Transfer/sec:    101.37MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   572.02us    1.26ms  12.12ms   87.26%
    Req/Sec   152.21k     6.88k  183.92k    73.53%
  Latency Distribution
     50%   63.00us
     75%  107.00us
     90%    2.38ms
     99%    6.32ms
  22718038 requests in 30.06s, 2.96GB read
Requests/sec: 755874.38
Transfer/sec:    100.92MB
### Combined result for upstream directly:
RPS     Avg: 783246.93
Latency Avg: 0.57ms    Max: 24.35ms
   P90 (ms): 2.4, 2.39, 2.38
   P99 (ms): 6.34, 6.33, 6.32
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.84ms  29.81ms   88.20%
    Req/Sec    32.77k     8.29k   54.15k    63.05%
  Latency Distribution
     50%  463.00us
     75%    0.98ms
     90%    3.52ms
     99%    9.17ms
  4897452 requests in 30.10s, 1.03GB read
Requests/sec: 162707.88
Transfer/sec:     34.91MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  35.35ms   88.07%
    Req/Sec    32.69k     8.75k   58.36k    57.12%
  Latency Distribution
     50%  476.00us
     75%    0.94ms
     90%    3.63ms
     99%    9.28ms
  4885641 requests in 30.10s, 1.02GB read
Requests/sec: 162319.81
Transfer/sec:     34.83MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  32.28ms   87.87%
    Req/Sec    33.07k     8.49k   53.82k    59.38%
  Latency Distribution
     50%  473.00us
     75%    0.91ms
     90%    3.64ms
     99%    9.17ms
  4949166 requests in 30.10s, 1.04GB read
Requests/sec: 164428.78
Transfer/sec:     35.28MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163152.16
Latency Avg: 1.19ms    Max: 35.35ms
   P90 (ms): 3.52, 3.63, 3.64
   P99 (ms): 9.17, 9.28, 9.17
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.82ms  26.71ms   89.05%
    Req/Sec    30.26k     7.75k   48.46k    59.34%
  Latency Distribution
     50%  473.00us
     75%    1.13ms
     90%    3.31ms
     99%    9.12ms
  4530254 requests in 30.10s, 0.95GB read
Requests/sec: 150509.95
Transfer/sec:     32.30MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.87ms  31.64ms   88.55%
    Req/Sec    30.90k     8.04k   54.39k    60.00%
  Latency Distribution
     50%  505.00us
     75%    0.97ms
     90%    3.52ms
     99%    9.34ms
  4626649 requests in 30.10s, 0.97GB read
Requests/sec: 153712.94
Transfer/sec:     32.98MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.82ms  29.22ms   88.60%
    Req/Sec    30.94k     7.84k   51.37k    58.34%
  Latency Distribution
     50%  504.00us
     75%    0.98ms
     90%    3.43ms
     99%    9.05ms
  4633618 requests in 30.10s, 0.97GB read
Requests/sec: 153944.18
Transfer/sec:     33.03MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 152722.36
Latency Avg: 1.19ms    Max: 31.64ms
   P90 (ms): 3.31, 3.52, 3.43
   P99 (ms): 9.12, 9.34, 9.05
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.83ms  41.23ms   90.78%
    Req/Sec    26.02k     6.41k   39.91k    58.94%
  Latency Distribution
     50%  652.00us
     75%    1.12ms
     90%    2.70ms
     99%    9.23ms
  3895769 requests in 30.10s, 835.93MB read
Requests/sec: 129430.35
Transfer/sec:     27.77MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.83ms  34.68ms   90.53%
    Req/Sec    26.46k     6.27k   44.68k    61.40%
  Latency Distribution
     50%  623.00us
     75%    1.11ms
     90%    2.81ms
     99%    9.24ms
  3961866 requests in 30.10s, 850.11MB read
Requests/sec: 131626.51
Transfer/sec:     28.24MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.89ms  42.98ms   90.70%
    Req/Sec    26.36k     6.48k   42.78k    62.77%
  Latency Distribution
     50%  608.00us
     75%    1.14ms
     90%    2.84ms
     99%    9.58ms
  3944097 requests in 30.10s, 846.30MB read
Requests/sec: 131036.08
Transfer/sec:     28.12MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 130697.65
Latency Avg: 1.22ms    Max: 42.98ms
   P90 (ms): 2.7, 2.81, 2.84
   P99 (ms): 9.23, 9.24, 9.58
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.88ms  29.95ms   88.36%
    Req/Sec    32.72k     8.51k   60.39k    60.79%
  Latency Distribution
     50%  464.00us
     75%    0.99ms
     90%    3.53ms
     99%    9.29ms
  4889667 requests in 30.10s, 1.02GB read
Requests/sec: 162452.03
Transfer/sec:     34.86MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  30.17ms   87.97%
    Req/Sec    33.07k     8.82k   54.98k    58.46%
  Latency Distribution
     50%  465.00us
     75%    0.95ms
     90%    3.64ms
     99%    9.31ms
  4942671 requests in 30.10s, 1.04GB read
Requests/sec: 164210.63
Transfer/sec:     35.24MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    2.27ms 210.91ms   89.54%
    Req/Sec    33.02k     8.76k   62.87k    61.16%
  Latency Distribution
     50%  470.00us
     75%    0.92ms
     90%    3.60ms
     99%    9.31ms
  4931991 requests in 30.10s, 1.03GB read
Requests/sec: 163855.66
Transfer/sec:     35.16MB
### Combined result for Kong git:master:
RPS     Avg: 163506.11
Latency Avg: 1.19ms    Max: 210.91ms
   P90 (ms): 3.53, 3.64, 3.6
   P99 (ms): 9.29, 9.31, 9.31
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.85ms  34.44ms   88.65%
    Req/Sec    30.85k     8.01k   49.14k    58.31%
  Latency Distribution
     50%  500.00us
     75%    1.00ms
     90%    3.46ms
     99%    9.23ms
  4617269 requests in 30.10s, 0.97GB read
Requests/sec: 153401.10
Transfer/sec:     32.92MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.89ms  31.09ms   88.58%
    Req/Sec    30.79k     8.20k   49.23k    58.41%
  Latency Distribution
     50%  509.00us
     75%    0.97ms
     90%    3.54ms
     99%    9.49ms
  4610890 requests in 30.10s, 0.97GB read
Requests/sec: 153189.14
Transfer/sec:     32.87MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  30.62ms   88.54%
    Req/Sec    30.99k     8.29k   49.51k    57.51%
  Latency Distribution
     50%  502.00us
     75%    0.97ms
     90%    3.54ms
     99%    9.37ms
  4636715 requests in 30.10s, 0.97GB read
Requests/sec: 154047.93
Transfer/sec:     33.05MB
### Combined result for Kong git:master:
RPS     Avg: 153546.06
Latency Avg: 1.20ms    Max: 34.44ms
   P90 (ms): 3.46, 3.54, 3.54
   P99 (ms): 9.23, 9.49, 9.37
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    2.04ms 208.39ms   91.26%
    Req/Sec    26.12k     6.53k   41.77k    62.99%
  Latency Distribution
     50%  620.00us
     75%    1.14ms
     90%    2.73ms
     99%    9.13ms
  3911270 requests in 30.10s, 839.25MB read
Requests/sec: 129945.22
Transfer/sec:     27.88MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.85ms  38.26ms   90.91%
    Req/Sec    26.10k     6.42k   41.76k    61.79%
  Latency Distribution
     50%  603.00us
     75%    1.17ms
     90%    2.73ms
     99%    9.44ms
  3908986 requests in 30.10s, 838.76MB read
Requests/sec: 129869.37
Transfer/sec:     27.87MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.84ms  33.35ms   90.87%
    Req/Sec    25.98k     6.39k   43.41k    62.39%
  Latency Distribution
     50%  626.00us
     75%    1.15ms
     90%    2.71ms
     99%    9.29ms
  3889889 requests in 30.10s, 834.67MB read
Requests/sec: 129235.01
Transfer/sec:     27.73MB
### Combined result for Kong git:master:
RPS     Avg: 129683.20
Latency Avg: 1.22ms    Max: 208.39ms
   P90 (ms): 2.73, 2.73, 2.71
   P99 (ms): 9.13, 9.44, 9.29
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

CHANGELOG.md Outdated Show resolved Hide resolved
kong/router/traditional.lua Outdated Show resolved Hide resolved
@mayocream mayocream force-pushed the fix/lua_regex_cache_max_entries branch 3 times, most recently from 324d3e9 to 3734160 Compare October 28, 2022 02:41
@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.16ms    1.85ms  36.80ms   88.26%
    Req/Sec    33.42k     8.58k   56.58k    60.79%
  Latency Distribution
     50%  462.00us
     75%    0.97ms
     90%    3.49ms
     99%    9.07ms
  4993877 requests in 30.10s, 1.05GB read
Requests/sec: 165914.30
Transfer/sec:     35.60MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  33.79ms   88.26%
    Req/Sec    32.97k     9.11k   64.22k    60.39%
  Latency Distribution
     50%  475.00us
     75%    0.98ms
     90%    3.56ms
     99%    9.37ms
  4927271 requests in 30.10s, 1.03GB read
Requests/sec: 163700.39
Transfer/sec:     35.13MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.88ms  33.67ms   88.27%
    Req/Sec    32.97k     8.96k   54.17k    60.05%
  Latency Distribution
     50%  478.00us
     75%    0.99ms
     90%    3.54ms
     99%    9.22ms
  4927463 requests in 30.10s, 1.03GB read
Requests/sec: 163709.03
Transfer/sec:     35.13MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164441.24
Latency Avg: 1.18ms    Max: 36.80ms
   P90 (ms): 3.49, 3.56, 3.54
   P99 (ms): 9.07, 9.37, 9.22
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.88ms  39.32ms   88.50%
    Req/Sec    31.38k     8.27k   51.29k    59.47%
  Latency Distribution
     50%  493.00us
     75%    0.99ms
     90%    3.53ms
     99%    9.27ms
  4699610 requests in 30.10s, 0.98GB read
Requests/sec: 156134.17
Transfer/sec:     33.50MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  33.00ms   88.54%
    Req/Sec    31.42k     8.01k   55.60k    58.85%
  Latency Distribution
     50%  511.00us
     75%    0.95ms
     90%    3.49ms
     99%    9.23ms
  4695703 requests in 30.10s, 0.98GB read
Requests/sec: 156005.90
Transfer/sec:     33.47MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  40.80ms   89.22%
    Req/Sec    30.74k     8.05k   53.96k    61.58%
  Latency Distribution
     50%  468.00us
     75%    1.15ms
     90%    3.35ms
     99%    9.44ms
  4594672 requests in 30.10s, 0.96GB read
Requests/sec: 152650.66
Transfer/sec:     32.75MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154930.24
Latency Avg: 1.19ms    Max: 40.80ms
   P90 (ms): 3.53, 3.49, 3.35
   P99 (ms): 9.27, 9.23, 9.44
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.80ms  38.32ms   90.35%
    Req/Sec    26.80k     6.40k   45.83k    62.03%
  Latency Distribution
     50%  599.00us
     75%    1.17ms
     90%    2.92ms
     99%    8.98ms
  4010485 requests in 30.10s, 860.54MB read
Requests/sec: 133239.35
Transfer/sec:     28.59MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.82ms  33.83ms   90.53%
    Req/Sec    26.92k     6.56k   52.47k    61.86%
  Latency Distribution
     50%  620.00us
     75%    1.12ms
     90%    2.81ms
     99%    9.19ms
  4031496 requests in 30.10s, 865.05MB read
Requests/sec: 133936.85
Transfer/sec:     28.74MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.81ms  34.94ms   90.64%
    Req/Sec    26.63k     6.72k   45.82k    62.19%
  Latency Distribution
     50%  623.00us
     75%    1.14ms
     90%    2.76ms
     99%    9.18ms
  3987850 requests in 30.10s, 855.69MB read
Requests/sec: 132487.54
Transfer/sec:     28.43MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 133221.25
Latency Avg: 1.21ms    Max: 38.32ms
   P90 (ms): 2.92, 2.81, 2.76
   P99 (ms): 8.98, 9.19, 9.18
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.91ms  34.85ms   88.31%
    Req/Sec    33.33k     8.68k   57.08k    62.52%
  Latency Distribution
     50%  464.00us
     75%    0.98ms
     90%    3.56ms
     99%    9.35ms
  4990786 requests in 30.10s, 1.05GB read
Requests/sec: 165807.14
Transfer/sec:     35.58MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    2.05ms  39.58ms   88.66%
    Req/Sec    33.10k     9.27k   60.18k    61.98%
  Latency Distribution
     50%  458.00us
     75%    1.02ms
     90%    3.67ms
     99%   10.06ms
  4947431 requests in 30.10s, 1.04GB read
Requests/sec: 164370.99
Transfer/sec:     35.27MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.96ms  34.53ms   88.27%
    Req/Sec    33.31k     9.06k   62.86k    59.99%
  Latency Distribution
     50%  460.00us
     75%    0.98ms
     90%    3.66ms
     99%    9.70ms
  4978082 requests in 30.10s, 1.04GB read
Requests/sec: 165389.47
Transfer/sec:     35.49MB
### Combined result for Kong git:master:
RPS     Avg: 165189.20
Latency Avg: 1.21ms    Max: 39.58ms
   P90 (ms): 3.56, 3.67, 3.66
   P99 (ms): 9.35, 10.06, 9.7
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.91ms  30.22ms   88.70%
    Req/Sec    31.35k     8.16k   54.02k    60.13%
  Latency Distribution
     50%  492.00us
     75%    1.00ms
     90%    3.53ms
     99%    9.53ms
  4693286 requests in 30.10s, 0.98GB read
Requests/sec: 155923.87
Transfer/sec:     33.46MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  33.45ms   88.51%
    Req/Sec    31.29k     8.32k   50.26k    59.47%
  Latency Distribution
     50%  507.00us
     75%    0.98ms
     90%    3.59ms
     99%    9.52ms
  4685184 requests in 30.10s, 0.98GB read
Requests/sec: 155654.34
Transfer/sec:     33.40MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.96ms  38.55ms   89.01%
    Req/Sec    30.95k     8.43k   60.89k    60.64%
  Latency Distribution
     50%  499.00us
     75%    1.05ms
     90%    3.49ms
     99%    9.86ms
  4631103 requests in 30.10s, 0.97GB read
Requests/sec: 153858.11
Transfer/sec:     33.01MB
### Combined result for Kong git:master:
RPS     Avg: 155145.44
Latency Avg: 1.21ms    Max: 38.55ms
   P90 (ms): 3.53, 3.59, 3.49
   P99 (ms): 9.53, 9.52, 9.86
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.81ms  33.84ms   90.55%
    Req/Sec    26.93k     6.27k   43.01k    60.86%
  Latency Distribution
     50%  629.00us
     75%    1.09ms
     90%    2.77ms
     99%    9.18ms
  4031652 requests in 30.10s, 865.08MB read
Requests/sec: 133942.90
Transfer/sec:     28.74MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.79ms  39.47ms   90.36%
    Req/Sec    26.64k     6.82k   46.85k    64.45%
  Latency Distribution
     50%  606.00us
     75%    1.16ms
     90%    2.88ms
     99%    8.95ms
  3988883 requests in 30.10s, 855.91MB read
Requests/sec: 132521.69
Transfer/sec:     28.44MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.89ms  44.38ms   90.84%
    Req/Sec    26.34k     6.71k   46.27k    65.12%
  Latency Distribution
     50%  612.00us
     75%    1.23ms
     90%    2.87ms
     99%    9.43ms
  3945042 requests in 30.10s, 846.50MB read
Requests/sec: 131064.84
Transfer/sec:     28.12MB
### Combined result for Kong git:master:
RPS     Avg: 132509.81
Latency Avg: 1.21ms    Max: 44.38ms
   P90 (ms): 2.77, 2.88, 2.87
   P99 (ms): 9.18, 8.95, 9.43
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   564.01us    1.25ms  12.13ms   87.32%
    Req/Sec   169.10k    13.34k  241.94k    68.82%
  Latency Distribution
     50%   57.00us
     75%   97.00us
     90%    2.40ms
     99%    6.28ms
  25257378 requests in 30.10s, 3.29GB read
Requests/sec: 839131.44
Transfer/sec:    112.04MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   571.87us    1.26ms  16.06ms   87.18%
    Req/Sec   153.65k     7.51k  194.11k    75.42%
  Latency Distribution
     50%   62.00us
     75%  106.00us
     90%    2.39ms
     99%    6.32ms
  22945955 requests in 30.10s, 2.99GB read
Requests/sec: 762345.39
Transfer/sec:    101.78MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   565.23us    1.26ms  12.12ms   87.40%
    Req/Sec   154.43k     8.46k  201.96k    74.15%
  Latency Distribution
     50%   62.00us
     75%  105.00us
     90%    2.38ms
     99%    6.35ms
  23063501 requests in 30.10s, 3.01GB read
Requests/sec: 766246.94
Transfer/sec:    102.30MB
### Combined result for upstream directly:
RPS     Avg: 789241.26
Latency Avg: 0.57ms    Max: 16.06ms
   P90 (ms): 2.4, 2.39, 2.38
   P99 (ms): 6.28, 6.32, 6.35
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.97ms  33.32ms   88.72%
    Req/Sec    32.81k     9.11k   58.79k    62.98%
  Latency Distribution
     50%  455.00us
     75%    1.08ms
     90%    3.54ms
     99%    9.74ms
  4903305 requests in 30.10s, 1.03GB read
Requests/sec: 162905.60
Transfer/sec:     34.96MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.90ms  30.68ms   87.97%
    Req/Sec    33.14k     9.17k   59.53k    59.19%
  Latency Distribution
     50%  473.00us
     75%    0.96ms
     90%    3.66ms
     99%    9.39ms
  4953153 requests in 30.10s, 1.04GB read
Requests/sec: 164558.02
Transfer/sec:     35.31MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.91ms  32.92ms   88.09%
    Req/Sec    33.28k     9.16k   63.89k    59.85%
  Latency Distribution
     50%  470.00us
     75%    0.95ms
     90%    3.62ms
     99%    9.45ms
  4972344 requests in 30.10s, 1.04GB read
Requests/sec: 165199.09
Transfer/sec:     35.45MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164220.90
Latency Avg: 1.20ms    Max: 33.32ms
   P90 (ms): 3.54, 3.66, 3.62
   P99 (ms): 9.74, 9.39, 9.45
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  36.54ms   88.83%
    Req/Sec    31.03k     8.03k   54.98k    59.67%
  Latency Distribution
     50%  502.00us
     75%    1.02ms
     90%    3.43ms
     99%    9.34ms
  4646063 requests in 30.10s, 0.97GB read
Requests/sec: 154354.72
Transfer/sec:     33.12MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.95ms  35.76ms   88.90%
    Req/Sec    30.88k     8.23k   51.90k    60.99%
  Latency Distribution
     50%  500.00us
     75%    1.05ms
     90%    3.53ms
     99%    9.78ms
  4614739 requests in 30.10s, 0.97GB read
Requests/sec: 153320.19
Transfer/sec:     32.90MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.13ms  51.16ms   89.20%
    Req/Sec    30.87k     8.88k   55.96k    61.40%
  Latency Distribution
     50%  504.00us
     75%    1.04ms
     90%    3.64ms
     99%   10.53ms
  4622515 requests in 30.10s, 0.97GB read
Requests/sec: 153572.60
Transfer/sec:     32.95MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153749.17
Latency Avg: 1.23ms    Max: 51.16ms
   P90 (ms): 3.43, 3.53, 3.64
   P99 (ms): 9.34, 9.78, 10.53
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.84ms  37.18ms   90.80%
    Req/Sec    26.32k     6.67k   43.16k    62.23%
  Latency Distribution
     50%  596.00us
     75%    1.24ms
     90%    2.83ms
     99%    9.27ms
  3938982 requests in 30.10s, 845.20MB read
Requests/sec: 130863.38
Transfer/sec:     28.08MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.96ms  38.48ms   90.81%
    Req/Sec    26.47k     6.59k   42.45k    61.86%
  Latency Distribution
     50%  590.00us
     75%    1.21ms
     90%    2.93ms
     99%    9.97ms
  3963421 requests in 30.10s, 850.44MB read
Requests/sec: 131675.64
Transfer/sec:     28.25MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.95ms  40.96ms   90.79%
    Req/Sec    26.61k     6.55k   44.18k    61.99%
  Latency Distribution
     50%  613.00us
     75%    1.15ms
     90%    2.87ms
     99%    9.95ms
  3984386 requests in 30.10s, 854.94MB read
Requests/sec: 132372.61
Transfer/sec:     28.40MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131637.21
Latency Avg: 1.24ms    Max: 40.96ms
   P90 (ms): 2.83, 2.93, 2.87
   P99 (ms): 9.27, 9.97, 9.95
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.92ms  45.55ms   88.25%
    Req/Sec    33.04k     9.13k   70.54k    61.03%
  Latency Distribution
     50%  472.00us
     75%    0.97ms
     90%    3.60ms
     99%    9.44ms
  4933767 requests in 30.10s, 1.03GB read
Requests/sec: 163916.63
Transfer/sec:     35.17MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.91ms  35.71ms   88.10%
    Req/Sec    33.33k     8.93k   72.54k    57.66%
  Latency Distribution
     50%  465.00us
     75%    0.95ms
     90%    3.63ms
     99%    9.39ms
  4980423 requests in 30.10s, 1.04GB read
Requests/sec: 165467.14
Transfer/sec:     35.50MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  33.98ms   88.40%
    Req/Sec    33.04k     8.90k   59.16k    60.65%
  Latency Distribution
     50%  466.00us
     75%    1.01ms
     90%    3.57ms
     99%    9.49ms
  4936663 requests in 30.10s, 1.03GB read
Requests/sec: 164011.14
Transfer/sec:     35.19MB
### Combined result for Kong git:master:
RPS     Avg: 164464.97
Latency Avg: 1.19ms    Max: 45.55ms
   P90 (ms): 3.6, 3.63, 3.57
   P99 (ms): 9.44, 9.39, 9.49
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.33ms    2.26ms  41.18ms   89.33%
    Req/Sec    30.78k     8.77k   52.00k    59.93%
  Latency Distribution
     50%  482.00us
     75%    1.12ms
     90%    3.80ms
     99%   11.22ms
  4608955 requests in 30.10s, 0.97GB read
Requests/sec: 153121.71
Transfer/sec:     32.86MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.81ms  33.89ms   88.72%
    Req/Sec    31.27k     8.24k   57.05k    61.06%
  Latency Distribution
     50%  491.00us
     75%    1.02ms
     90%    3.38ms
     99%    8.95ms
  4683029 requests in 30.10s, 0.98GB read
Requests/sec: 155582.88
Transfer/sec:     33.38MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  32.18ms   88.71%
    Req/Sec    31.17k     8.24k   54.01k    60.12%
  Latency Distribution
     50%  494.00us
     75%    1.02ms
     90%    3.47ms
     99%    9.35ms
  4658516 requests in 30.10s, 0.98GB read
Requests/sec: 154772.24
Transfer/sec:     33.21MB
### Combined result for Kong git:master:
RPS     Avg: 154492.28
Latency Avg: 1.23ms    Max: 41.18ms
   P90 (ms): 3.8, 3.38, 3.47
   P99 (ms): 11.22, 8.95, 9.35
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.36ms    2.09ms  46.92ms   90.15%
    Req/Sec    25.72k     6.89k   44.64k    62.86%
  Latency Distribution
     50%  584.00us
     75%    1.39ms
     90%    3.41ms
     99%   10.53ms
  3850753 requests in 30.10s, 826.27MB read
Requests/sec: 127932.29
Transfer/sec:     27.45MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.98ms  39.56ms   90.62%
    Req/Sec    26.35k     6.95k   48.93k    62.52%
  Latency Distribution
     50%  630.00us
     75%    1.15ms
     90%    2.98ms
     99%   10.16ms
  3945107 requests in 30.10s, 846.51MB read
Requests/sec: 131066.93
Transfer/sec:     28.12MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.88ms  46.13ms   90.82%
    Req/Sec    26.56k     6.42k   42.78k    61.45%
  Latency Distribution
     50%  593.00us
     75%    1.20ms
     90%    2.79ms
     99%    9.29ms
  3968316 requests in 30.10s, 851.49MB read
Requests/sec: 131841.28
Transfer/sec:     28.29MB
### Combined result for Kong git:master:
RPS     Avg: 130280.17
Latency Avg: 1.28ms    Max: 46.92ms
   P90 (ms): 3.41, 2.98, 2.79
   P99 (ms): 10.53, 10.16, 9.29
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  38.35ms   88.15%
    Req/Sec    33.17k     8.56k   57.07k    62.92%
  Latency Distribution
     50%  456.00us
     75%    1.03ms
     90%    3.64ms
     99%    9.52ms
  4955974 requests in 30.10s, 1.04GB read
Requests/sec: 164653.77
Transfer/sec:     35.33MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  32.58ms   88.15%
    Req/Sec    32.75k     8.88k   72.40k    61.19%
  Latency Distribution
     50%  462.00us
     75%    1.04ms
     90%    3.74ms
     99%    9.76ms
  4895138 requests in 30.10s, 1.03GB read
Requests/sec: 162633.44
Transfer/sec:     34.90MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.18ms  40.31ms   88.42%
    Req/Sec    32.76k     9.54k   56.30k    60.45%
  Latency Distribution
     50%  470.00us
     75%    1.02ms
     90%    3.93ms
     99%   10.66ms
  4896729 requests in 30.10s, 1.03GB read
Requests/sec: 162687.64
Transfer/sec:     34.91MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163324.95
Latency Avg: 1.25ms    Max: 40.31ms
   P90 (ms): 3.64, 3.74, 3.93
   P99 (ms): 9.52, 9.76, 10.66
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  33.59ms   88.48%
    Req/Sec    31.00k     8.47k   52.26k    60.80%
  Latency Distribution
     50%  511.00us
     75%    0.99ms
     90%    3.79ms
     99%   10.11ms
  4641916 requests in 30.10s, 0.97GB read
Requests/sec: 154216.89
Transfer/sec:     33.09MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  38.17ms   88.37%
    Req/Sec    31.08k     8.29k   53.24k    59.67%
  Latency Distribution
     50%  505.00us
     75%    0.99ms
     90%    3.80ms
     99%   10.02ms
  4654478 requests in 30.10s, 0.98GB read
Requests/sec: 154634.04
Transfer/sec:     33.18MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.31ms    2.21ms  42.54ms   89.19%
    Req/Sec    30.55k     8.56k   58.67k    60.53%
  Latency Distribution
     50%  499.00us
     75%    1.09ms
     90%    3.79ms
     99%   10.91ms
  4575167 requests in 30.10s, 0.96GB read
Requests/sec: 151999.39
Transfer/sec:     32.62MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153616.77
Latency Avg: 1.27ms    Max: 42.54ms
   P90 (ms): 3.79, 3.8, 3.79
   P99 (ms): 10.11, 10.02, 10.91
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.02ms  43.62ms   90.75%
    Req/Sec    26.37k     6.79k   44.05k    62.85%
  Latency Distribution
     50%  613.00us
     75%    1.20ms
     90%    2.96ms
     99%   10.24ms
  3940795 requests in 30.10s, 845.59MB read
Requests/sec: 130928.37
Transfer/sec:     28.09MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.02ms  36.66ms   90.51%
    Req/Sec    26.49k     6.59k   53.24k    62.33%
  Latency Distribution
     50%  599.00us
     75%    1.20ms
     90%    3.08ms
     99%   10.23ms
  3966981 requests in 30.10s, 851.21MB read
Requests/sec: 131793.95
Transfer/sec:     28.28MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.89ms  36.01ms   90.58%
    Req/Sec    26.36k     6.43k   46.62k    61.40%
  Latency Distribution
     50%  623.00us
     75%    1.16ms
     90%    2.88ms
     99%    9.46ms
  3948150 requests in 30.10s, 847.17MB read
Requests/sec: 131168.24
Transfer/sec:     28.15MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131296.85
Latency Avg: 1.26ms    Max: 43.62ms
   P90 (ms): 2.96, 3.08, 2.88
   P99 (ms): 10.24, 10.23, 9.46
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.99ms  36.62ms   88.12%
    Req/Sec    33.01k     8.89k   55.28k    60.32%
  Latency Distribution
     50%  469.00us
     75%    0.99ms
     90%    3.75ms
     99%    9.75ms
  4934096 requests in 30.10s, 1.03GB read
Requests/sec: 163927.99
Transfer/sec:     35.17MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.09ms  49.41ms   88.23%
    Req/Sec    33.05k     9.06k   53.31k    60.65%
  Latency Distribution
     50%  464.00us
     75%    1.00ms
     90%    3.85ms
     99%   10.17ms
  4939197 requests in 30.10s, 1.03GB read
Requests/sec: 164097.35
Transfer/sec:     35.21MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.08ms  36.48ms   88.15%
    Req/Sec    32.92k     9.18k   59.98k    60.65%
  Latency Distribution
     50%  465.00us
     75%    1.02ms
     90%    3.88ms
     99%   10.19ms
  4918743 requests in 30.10s, 1.03GB read
Requests/sec: 163420.41
Transfer/sec:     35.07MB
### Combined result for Kong git:master:
RPS     Avg: 163815.25
Latency Avg: 1.25ms    Max: 49.41ms
   P90 (ms): 3.75, 3.85, 3.88
   P99 (ms): 9.75, 10.17, 10.19
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  33.94ms   88.50%
    Req/Sec    30.90k     8.01k   51.80k    60.73%
  Latency Distribution
     50%  512.00us
     75%    1.00ms
     90%    3.72ms
     99%    9.93ms
  4626169 requests in 30.10s, 0.97GB read
Requests/sec: 153693.73
Transfer/sec:     32.98MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.98ms  36.85ms   88.49%
    Req/Sec    30.81k     8.30k   51.29k    59.47%
  Latency Distribution
     50%  513.00us
     75%    1.02ms
     90%    3.71ms
     99%    9.85ms
  4613083 requests in 30.10s, 0.97GB read
Requests/sec: 153259.43
Transfer/sec:     32.89MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.31ms    2.17ms  48.40ms   88.93%
    Req/Sec    30.42k     8.58k   50.53k    62.52%
  Latency Distribution
     50%  510.00us
     75%    1.08ms
     90%    3.82ms
     99%   10.69ms
  4556096 requests in 30.10s, 0.95GB read
Requests/sec: 151365.91
Transfer/sec:     32.48MB
### Combined result for Kong git:master:
RPS     Avg: 152773.02
Latency Avg: 1.26ms    Max: 48.40ms
   P90 (ms): 3.72, 3.71, 3.82
   P99 (ms): 9.93, 9.85, 10.69
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.94ms  37.24ms   90.34%
    Req/Sec    26.61k     6.84k   41.78k    60.33%
  Latency Distribution
     50%  611.00us
     75%    1.17ms
     90%    3.07ms
     99%    9.77ms
  3984697 requests in 30.10s, 855.01MB read
Requests/sec: 132382.58
Transfer/sec:     28.41MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.00ms  37.12ms   90.25%
    Req/Sec    26.78k     6.89k   44.71k    61.33%
  Latency Distribution
     50%  601.00us
     75%    1.16ms
     90%    3.17ms
     99%   10.14ms
  4010560 requests in 30.10s, 860.56MB read
Requests/sec: 133241.29
Transfer/sec:     28.59MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.94ms  31.66ms   90.44%
    Req/Sec    26.48k     6.83k   48.12k    61.99%
  Latency Distribution
     50%  598.00us
     75%    1.21ms
     90%    3.03ms
     99%    9.87ms
  3965063 requests in 30.10s, 850.80MB read
Requests/sec: 131729.90
Transfer/sec:     28.27MB
### Combined result for Kong git:master:
RPS     Avg: 132451.26
Latency Avg: 1.26ms    Max: 37.24ms
   P90 (ms): 3.07, 3.17, 3.03
   P99 (ms): 9.77, 10.14, 9.87
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.19:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   566.41us    1.25ms  12.13ms   87.31%
    Req/Sec   167.31k    13.00k  216.87k    65.87%
  Latency Distribution
     50%   58.00us
     75%   98.00us
     90%    2.39ms
     99%    6.28ms
  24969601 requests in 30.03s, 3.26GB read
Requests/sec: 831595.24
Transfer/sec:    111.03MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.19:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   574.00us    1.27ms  24.32ms   87.33%
    Req/Sec   153.22k     8.03k  199.75k    72.62%
  Latency Distribution
     50%   64.00us
     75%  106.00us
     90%    2.39ms
     99%    6.37ms
  22884205 requests in 30.10s, 2.98GB read
Requests/sec: 760279.46
Transfer/sec:    101.51MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.19:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   573.47us    1.27ms  16.00ms   87.38%
    Req/Sec   152.35k     7.46k  194.62k    73.28%
  Latency Distribution
     50%   63.00us
     75%  106.00us
     90%    2.38ms
     99%    6.38ms
  22752277 requests in 30.10s, 2.97GB read
Requests/sec: 755909.54
Transfer/sec:    100.92MB
### Combined result for upstream directly:
RPS     Avg: 782594.75
Latency Avg: 0.57ms    Max: 24.32ms
   P90 (ms): 2.39, 2.39, 2.38
   P99 (ms): 6.28, 6.37, 6.38
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.08ms  38.37ms   88.26%
    Req/Sec    32.53k     9.23k   59.15k    60.72%
  Latency Distribution
     50%  464.00us
     75%    1.07ms
     90%    3.85ms
     99%   10.28ms
  4861558 requests in 30.10s, 1.02GB read
Requests/sec: 161519.14
Transfer/sec:     34.66MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.98ms  32.15ms   87.98%
    Req/Sec    32.79k     8.77k   53.11k    60.79%
  Latency Distribution
     50%  476.00us
     75%    0.98ms
     90%    3.80ms
     99%    9.74ms
  4899896 requests in 30.10s, 1.03GB read
Requests/sec: 162791.63
Transfer/sec:     34.93MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.01ms  32.98ms   88.02%
    Req/Sec    32.72k     9.09k   55.91k    61.05%
  Latency Distribution
     50%  473.00us
     75%    1.00ms
     90%    3.83ms
     99%    9.97ms
  4889700 requests in 30.10s, 1.02GB read
Requests/sec: 162454.53
Transfer/sec:     34.86MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 162255.10
Latency Avg: 1.25ms    Max: 38.37ms
   P90 (ms): 3.85, 3.8, 3.83
   P99 (ms): 10.28, 9.74, 9.97
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.99ms  31.05ms   88.43%
    Req/Sec    30.73k     8.10k   52.74k    59.44%
  Latency Distribution
     50%  518.00us
     75%    1.00ms
     90%    3.74ms
     99%    9.90ms
  4597555 requests in 30.10s, 0.96GB read
Requests/sec: 152743.15
Transfer/sec:     32.77MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.06ms  47.91ms   88.52%
    Req/Sec    30.90k     8.35k   52.34k    58.94%
  Latency Distribution
     50%  522.00us
     75%    0.98ms
     90%    3.81ms
     99%   10.21ms
  4626549 requests in 30.10s, 0.97GB read
Requests/sec: 153706.23
Transfer/sec:     32.98MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.95ms  29.15ms   88.57%
    Req/Sec    30.87k     8.13k   70.04k    58.76%
  Latency Distribution
     50%  501.00us
     75%    1.02ms
     90%    3.65ms
     99%    9.67ms
  4610130 requests in 30.10s, 0.97GB read
Requests/sec: 153166.34
Transfer/sec:     32.87MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153205.24
Latency Avg: 1.25ms    Max: 47.91ms
   P90 (ms): 3.74, 3.81, 3.65
   P99 (ms): 9.9, 10.21, 9.67
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.45ms    2.38ms  40.08ms   90.45%
    Req/Sec    25.86k     6.91k   44.85k    63.85%
  Latency Distribution
     50%  592.00us
     75%    1.35ms
     90%    3.67ms
     99%   12.29ms
  3872876 requests in 30.10s, 831.02MB read
Requests/sec: 128667.22
Transfer/sec:     27.61MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.97ms  34.81ms   90.35%
    Req/Sec    26.52k     6.53k   44.42k    59.14%
  Latency Distribution
     50%  629.00us
     75%    1.11ms
     90%    3.08ms
     99%   10.01ms
  3971000 requests in 30.10s, 852.07MB read
Requests/sec: 131927.24
Transfer/sec:     28.31MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.02ms  39.13ms   90.57%
    Req/Sec    26.36k     6.73k   42.68k    60.47%
  Latency Distribution
     50%  607.00us
     75%    1.20ms
     90%    3.06ms
     99%   10.28ms
  3946491 requests in 30.10s, 846.81MB read
Requests/sec: 131112.86
Transfer/sec:     28.13MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 130569.11
Latency Avg: 1.33ms    Max: 40.08ms
   P90 (ms): 3.67, 3.08, 3.06
   P99 (ms): 12.29, 10.01, 10.28
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.05ms  32.67ms   88.32%
    Req/Sec    32.55k     9.30k   55.78k    61.65%
  Latency Distribution
     50%  466.00us
     75%    1.07ms
     90%    3.79ms
     99%   10.07ms
  4864540 requests in 30.10s, 1.02GB read
Requests/sec: 161618.62
Transfer/sec:     34.68MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.95ms  29.01ms   87.85%
    Req/Sec    33.17k     8.72k   75.34k    61.29%
  Latency Distribution
     50%  461.00us
     75%    0.99ms
     90%    3.79ms
     99%    9.60ms
  4953631 requests in 30.10s, 1.04GB read
Requests/sec: 164578.62
Transfer/sec:     35.31MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.21:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.02ms  34.52ms   87.90%
    Req/Sec    33.00k     8.96k   55.82k    60.99%
  Latency Distribution
     50%  468.00us
     75%    1.00ms
     90%    3.87ms
     99%    9.94ms
  4931226 requests in 30.10s, 1.03GB read
Requests/sec: 163831.40
Transfer/sec:     35.15MB
### Combined result for Kong git:master:
RPS     Avg: 163342.88
Latency Avg: 1.25ms    Max: 34.52ms
   P90 (ms): 3.79, 3.79, 3.87
   P99 (ms): 10.07, 9.6, 9.94
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.03ms  46.34ms   88.57%
    Req/Sec    30.65k     8.37k   51.91k    57.87%
  Latency Distribution
     50%  518.00us
     75%    1.02ms
     90%    3.75ms
     99%   10.06ms
  4589553 requests in 30.10s, 0.96GB read
Requests/sec: 152477.11
Transfer/sec:     32.72MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.98ms  31.33ms   88.52%
    Req/Sec    30.83k     8.34k   73.57k    60.90%
  Latency Distribution
     50%  512.00us
     75%    1.01ms
     90%    3.69ms
     99%    9.88ms
  4614333 requests in 30.10s, 0.97GB read
Requests/sec: 153300.47
Transfer/sec:     32.89MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.12ms  37.39ms   88.66%
    Req/Sec    30.78k     8.57k   54.21k    57.48%
  Latency Distribution
     50%  513.00us
     75%    1.02ms
     90%    3.83ms
     99%   10.52ms
  4609218 requests in 30.10s, 0.97GB read
Requests/sec: 153131.16
Transfer/sec:     32.86MB
### Combined result for Kong git:master:
RPS     Avg: 152969.58
Latency Avg: 1.26ms    Max: 46.34ms
   P90 (ms): 3.75, 3.69, 3.83
   P99 (ms): 10.06, 9.88, 10.52
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.31ms    2.05ms  37.21ms   90.71%
    Req/Sec    25.70k     6.64k   47.28k    63.99%
  Latency Distribution
     50%  607.00us
     75%    1.29ms
     90%    3.12ms
     99%   10.36ms
  3848473 requests in 30.10s, 825.78MB read
Requests/sec: 127856.38
Transfer/sec:     27.43MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.03ms  41.57ms   90.56%
    Req/Sec    25.89k     6.54k   43.53k    61.86%
  Latency Distribution
     50%  611.00us
     75%    1.24ms
     90%    3.16ms
     99%   10.15ms
  3876206 requests in 30.10s, 831.73MB read
Requests/sec: 128778.00
Transfer/sec:     27.63MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.21:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.94ms  41.92ms   90.69%
    Req/Sec    26.03k     6.62k   45.65k    61.79%
  Latency Distribution
     50%  638.00us
     75%    1.17ms
     90%    2.89ms
     99%    9.77ms
  3897339 requests in 30.10s, 836.26MB read
Requests/sec: 129479.93
Transfer/sec:     27.78MB
### Combined result for Kong git:master:
RPS     Avg: 128704.77
Latency Avg: 1.29ms    Max: 41.92ms
   P90 (ms): 3.12, 3.16, 2.89
   P99 (ms): 10.36, 10.15, 9.77
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.14ms    1.78ms  37.88ms   88.15%
    Req/Sec    33.51k     8.46k   55.77k    60.65%
  Latency Distribution
     50%  469.00us
     75%    0.95ms
     90%    3.41ms
     99%    8.76ms
  5008105 requests in 30.10s, 1.05GB read
Requests/sec: 166382.73
Transfer/sec:     35.70MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.87ms  28.69ms   88.10%
    Req/Sec    33.26k     9.11k   59.68k    60.39%
  Latency Distribution
     50%  478.00us
     75%    0.94ms
     90%    3.56ms
     99%    9.27ms
  4969758 requests in 30.10s, 1.04GB read
Requests/sec: 165109.26
Transfer/sec:     35.43MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.16ms    1.82ms  32.73ms   88.02%
    Req/Sec    33.39k     9.03k   58.02k    61.78%
  Latency Distribution
     50%  470.00us
     75%    0.95ms
     90%    3.52ms
     99%    9.02ms
  4990088 requests in 30.10s, 1.05GB read
Requests/sec: 165783.83
Transfer/sec:     35.57MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 165758.61
Latency Avg: 1.16ms    Max: 37.88ms
   P90 (ms): 3.41, 3.56, 3.52
   P99 (ms): 8.76, 9.27, 9.02
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  30.97ms   88.89%
    Req/Sec    31.06k     8.13k   53.12k    61.93%
  Latency Distribution
     50%  497.00us
     75%    1.03ms
     90%    3.39ms
     99%    9.32ms
  4651265 requests in 30.10s, 0.97GB read
Requests/sec: 154529.88
Transfer/sec:     33.16MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    2.04ms  48.42ms   89.03%
    Req/Sec    31.14k     8.65k   52.42k    61.20%
  Latency Distribution
     50%  507.00us
     75%    1.00ms
     90%    3.58ms
     99%   10.04ms
  4662220 requests in 30.10s, 0.98GB read
Requests/sec: 154894.07
Transfer/sec:     33.24MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    2.00ms  33.99ms   89.06%
    Req/Sec    31.04k     8.32k   50.82k    61.66%
  Latency Distribution
     50%  497.00us
     75%    1.04ms
     90%    3.51ms
     99%    9.85ms
  4647626 requests in 30.10s, 0.97GB read
Requests/sec: 154409.80
Transfer/sec:     33.13MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154611.25
Latency Avg: 1.21ms    Max: 48.42ms
   P90 (ms): 3.39, 3.58, 3.51
   P99 (ms): 9.32, 10.04, 9.85
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.78ms  35.64ms   90.58%
    Req/Sec    26.91k     6.49k   44.81k    62.79%
  Latency Distribution
     50%  601.00us
     75%    1.15ms
     90%    2.72ms
     99%    8.85ms
  4028917 requests in 30.10s, 864.50MB read
Requests/sec: 133853.39
Transfer/sec:     28.72MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.75ms  36.33ms   90.51%
    Req/Sec    26.86k     6.66k   50.73k    62.25%
  Latency Distribution
     50%  628.00us
     75%    1.10ms
     90%    2.73ms
     99%    8.68ms
  4013980 requests in 30.10s, 861.29MB read
Requests/sec: 133356.26
Transfer/sec:     28.61MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.76ms  39.17ms   90.01%
    Req/Sec    26.64k     6.48k   45.67k    61.65%
  Latency Distribution
     50%  607.00us
     75%    1.19ms
     90%    2.97ms
     99%    8.68ms
  3981904 requests in 30.10s, 854.41MB read
Requests/sec: 132294.01
Transfer/sec:     28.39MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 133167.89
Latency Avg: 1.19ms    Max: 39.17ms
   P90 (ms): 2.72, 2.73, 2.97
   P99 (ms): 8.85, 8.68, 8.68
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.87ms  33.41ms   88.09%
    Req/Sec    33.13k     8.71k   54.77k    60.12%
  Latency Distribution
     50%  475.00us
     75%    0.96ms
     90%    3.59ms
     99%    9.30ms
  4951147 requests in 30.10s, 1.04GB read
Requests/sec: 164491.85
Transfer/sec:     35.30MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.88ms  30.63ms   88.41%
    Req/Sec    33.09k     8.51k   59.60k    60.19%
  Latency Distribution
     50%  463.00us
     75%    1.00ms
     90%    3.50ms
     99%    9.33ms
  4946040 requests in 30.10s, 1.04GB read
Requests/sec: 164322.68
Transfer/sec:     35.26MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.87ms  34.96ms   88.38%
    Req/Sec    32.96k     8.79k   60.05k    61.05%
  Latency Distribution
     50%  460.00us
     75%    1.04ms
     90%    3.51ms
     99%    9.24ms
  4926047 requests in 30.10s, 1.03GB read
Requests/sec: 163660.52
Transfer/sec:     35.12MB
### Combined result for Kong git:master:
RPS     Avg: 164158.35
Latency Avg: 1.18ms    Max: 34.96ms
   P90 (ms): 3.59, 3.5, 3.51
   P99 (ms): 9.3, 9.33, 9.24
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.95ms  39.94ms   88.98%
    Req/Sec    31.02k     8.34k   58.70k    60.68%
  Latency Distribution
     50%  493.00us
     75%    1.05ms
     90%    3.48ms
     99%    9.65ms
  4639583 requests in 30.10s, 0.97GB read
Requests/sec: 154142.29
Transfer/sec:     33.07MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.90ms  33.84ms   88.70%
    Req/Sec    31.08k     8.37k   52.20k    60.66%
  Latency Distribution
     50%  495.00us
     75%    1.03ms
     90%    3.50ms
     99%    9.51ms
  4654959 requests in 30.10s, 0.98GB read
Requests/sec: 154653.21
Transfer/sec:     33.18MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  39.55ms   88.93%
    Req/Sec    31.02k     7.90k   53.78k    60.90%
  Latency Distribution
     50%  499.00us
     75%    1.03ms
     90%    3.37ms
     99%    9.21ms
  4642052 requests in 30.10s, 0.97GB read
Requests/sec: 154224.84
Transfer/sec:     33.09MB
### Combined result for Kong git:master:
RPS     Avg: 154340.11
Latency Avg: 1.20ms    Max: 39.94ms
   P90 (ms): 3.48, 3.5, 3.37
   P99 (ms): 9.65, 9.51, 9.21
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.77ms  35.15ms   90.56%
    Req/Sec    26.79k     6.57k   47.53k    63.19%
  Latency Distribution
     50%  595.00us
     75%    1.18ms
     90%    2.74ms
     99%    8.94ms
  4011890 requests in 30.10s, 860.84MB read
Requests/sec: 133287.98
Transfer/sec:     28.60MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.78ms  33.42ms   90.76%
    Req/Sec    26.57k     6.37k   44.04k    61.73%
  Latency Distribution
     50%  616.00us
     75%    1.17ms
     90%    2.71ms
     99%    8.97ms
  3979173 requests in 30.10s, 853.82MB read
Requests/sec: 132201.17
Transfer/sec:     28.37MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    1.98ms  38.00ms   90.36%
    Req/Sec    26.42k     6.77k   49.52k    63.06%
  Latency Distribution
     50%  592.00us
     75%    1.26ms
     90%    3.17ms
     99%   10.17ms
  3956216 requests in 30.10s, 848.90MB read
Requests/sec: 131438.72
Transfer/sec:     28.20MB
### Combined result for Kong git:master:
RPS     Avg: 132309.29
Latency Avg: 1.23ms    Max: 38.00ms
   P90 (ms): 2.74, 2.71, 3.17
   P99 (ms): 8.94, 8.97, 10.17
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.11:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   563.17us    1.25ms  12.11ms   87.13%
    Req/Sec   169.96k    12.28k  222.61k    69.42%
  Latency Distribution
     50%   58.00us
     75%   96.00us
     90%    2.40ms
     99%    6.22ms
  25380396 requests in 30.10s, 3.31GB read
Requests/sec: 843216.08
Transfer/sec:    112.58MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.11:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   567.10us    1.25ms  16.03ms   87.28%
    Req/Sec   153.54k     8.12k  192.03k    72.10%
  Latency Distribution
     50%   64.00us
     75%  106.00us
     90%    2.38ms
     99%    6.32ms
  22943723 requests in 30.10s, 2.99GB read
Requests/sec: 762253.93
Transfer/sec:    101.77MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.11:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   568.09us    1.25ms  16.03ms   87.25%
    Req/Sec   153.57k     8.17k  210.54k    74.88%
  Latency Distribution
     50%   64.00us
     75%  106.00us
     90%    2.38ms
     99%    6.31ms
  22934651 requests in 30.10s, 2.99GB read
Requests/sec: 761956.64
Transfer/sec:    101.73MB
### Combined result for upstream directly:
RPS     Avg: 789142.22
Latency Avg: 0.57ms    Max: 16.03ms
   P90 (ms): 2.4, 2.38, 2.38
   P99 (ms): 6.22, 6.32, 6.31
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.94ms  44.72ms   88.60%
    Req/Sec    33.14k     8.70k   58.43k    63.85%
  Latency Distribution
     50%  461.00us
     75%    1.02ms
     90%    3.53ms
     99%    9.52ms
  4953246 requests in 30.10s, 1.04GB read
Requests/sec: 164562.59
Transfer/sec:     35.31MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.11ms  44.18ms   88.93%
    Req/Sec    32.70k     9.13k   59.41k    60.52%
  Latency Distribution
     50%  456.00us
     75%    1.07ms
     90%    3.67ms
     99%   10.26ms
  4886678 requests in 30.10s, 1.02GB read
Requests/sec: 162350.88
Transfer/sec:     34.84MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.93ms  30.71ms   88.28%
    Req/Sec    33.08k     8.74k   56.80k    61.72%
  Latency Distribution
     50%  466.00us
     75%    0.98ms
     90%    3.61ms
     99%    9.56ms
  4944802 requests in 30.10s, 1.04GB read
Requests/sec: 164280.54
Transfer/sec:     35.25MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163731.34
Latency Avg: 1.21ms    Max: 44.72ms
   P90 (ms): 3.53, 3.67, 3.61
   P99 (ms): 9.52, 10.26, 9.56
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.88ms  34.95ms   88.56%
    Req/Sec    31.25k     8.21k   49.99k    58.41%
  Latency Distribution
     50%  504.00us
     75%    0.98ms
     90%    3.52ms
     99%    9.36ms
  4680115 requests in 30.10s, 0.98GB read
Requests/sec: 155488.73
Transfer/sec:     33.36MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.13ms  48.71ms   89.42%
    Req/Sec    30.79k     8.53k   57.18k    60.73%
  Latency Distribution
     50%  510.00us
     75%    1.04ms
     90%    3.58ms
     99%   10.55ms
  4611611 requests in 30.10s, 0.97GB read
Requests/sec: 153212.77
Transfer/sec:     32.88MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.91ms  44.10ms   89.02%
    Req/Sec    31.00k     7.92k   54.29k    61.20%
  Latency Distribution
     50%  502.00us
     75%    1.02ms
     90%    3.42ms
     99%    9.50ms
  4642616 requests in 30.10s, 0.97GB read
Requests/sec: 154243.01
Transfer/sec:     33.10MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154314.84
Latency Avg: 1.22ms    Max: 48.71ms
   P90 (ms): 3.52, 3.58, 3.42
   P99 (ms): 9.36, 10.55, 9.5
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.76ms  36.53ms   90.56%
    Req/Sec    26.63k     6.42k   44.89k    58.80%
  Latency Distribution
     50%  631.00us
     75%    1.12ms
     90%    2.74ms
     99%    8.76ms
  3988410 requests in 30.10s, 855.81MB read
Requests/sec: 132508.10
Transfer/sec:     28.43MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.80ms  35.31ms   90.57%
    Req/Sec    26.58k     6.54k   43.61k    61.59%
  Latency Distribution
     50%  620.00us
     75%    1.14ms
     90%    2.77ms
     99%    9.16ms
  3981164 requests in 30.10s, 854.25MB read
Requests/sec: 132267.01
Transfer/sec:     28.38MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.01ms  37.99ms   90.94%
    Req/Sec    26.44k     6.92k   45.71k    62.83%
  Latency Distribution
     50%  598.00us
     75%    1.22ms
     90%    2.91ms
     99%   10.43ms
  3956052 requests in 30.10s, 848.86MB read
Requests/sec: 131433.29
Transfer/sec:     28.20MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 132069.47
Latency Avg: 1.22ms    Max: 37.99ms
   P90 (ms): 2.74, 2.77, 2.91
   P99 (ms): 8.76, 9.16, 10.43
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  33.29ms   88.57%
    Req/Sec    32.75k     8.86k   57.87k    60.85%
  Latency Distribution
     50%  461.00us
     75%    1.05ms
     90%    3.53ms
     99%    9.55ms
  4894172 requests in 30.10s, 1.03GB read
Requests/sec: 162597.74
Transfer/sec:     34.89MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.81ms  27.94ms   88.40%
    Req/Sec    32.91k     8.30k   60.58k    60.72%
  Latency Distribution
     50%  466.00us
     75%    1.01ms
     90%    3.42ms
     99%    8.97ms
  4918817 requests in 30.10s, 1.03GB read
Requests/sec: 163420.81
Transfer/sec:     35.07MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.87ms  39.64ms   88.19%
    Req/Sec    32.76k     8.85k   53.98k    58.85%
  Latency Distribution
     50%  474.00us
     75%    0.99ms
     90%    3.56ms
     99%    9.30ms
  4895915 requests in 30.10s, 1.03GB read
Requests/sec: 162655.90
Transfer/sec:     34.90MB
### Combined result for Kong git:master:
RPS     Avg: 162891.48
Latency Avg: 1.18ms    Max: 39.64ms
   P90 (ms): 3.53, 3.42, 3.56
   P99 (ms): 9.55, 8.97, 9.3
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.83ms  36.79ms   88.71%
    Req/Sec    30.83k     8.07k   52.14k    59.73%
  Latency Distribution
     50%  519.00us
     75%    0.99ms
     90%    3.42ms
     99%    9.16ms
  4617705 requests in 30.10s, 0.97GB read
Requests/sec: 153415.32
Transfer/sec:     32.92MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  33.38ms   88.68%
    Req/Sec    31.07k     8.17k   53.15k    58.71%
  Latency Distribution
     50%  509.00us
     75%    1.00ms
     90%    3.47ms
     99%    9.37ms
  4648184 requests in 30.10s, 0.97GB read
Requests/sec: 154428.17
Transfer/sec:     33.14MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.90ms  32.44ms   89.09%
    Req/Sec    30.83k     8.04k   54.98k    61.26%
  Latency Distribution
     50%  495.00us
     75%    1.08ms
     90%    3.39ms
     99%    9.49ms
  4616336 requests in 30.10s, 0.97GB read
Requests/sec: 153369.58
Transfer/sec:     32.91MB
### Combined result for Kong git:master:
RPS     Avg: 153737.69
Latency Avg: 1.19ms    Max: 36.79ms
   P90 (ms): 3.42, 3.47, 3.39
   P99 (ms): 9.16, 9.37, 9.49
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.89ms  47.50ms   90.88%
    Req/Sec    26.40k     6.50k   42.77k    60.53%
  Latency Distribution
     50%  619.00us
     75%    1.18ms
     90%    2.77ms
     99%    9.55ms
  3953463 requests in 30.10s, 848.31MB read
Requests/sec: 131346.80
Transfer/sec:     28.18MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.90ms  33.68ms   90.71%
    Req/Sec    26.54k     6.73k   45.61k    60.86%
  Latency Distribution
     50%  614.00us
     75%    1.18ms
     90%    2.85ms
     99%    9.76ms
  3974689 requests in 30.10s, 852.86MB read
Requests/sec: 132052.45
Transfer/sec:     28.33MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.79ms  31.97ms   90.44%
    Req/Sec    26.70k     6.58k   47.16k    61.20%
  Latency Distribution
     50%  638.00us
     75%    1.11ms
     90%    2.81ms
     99%    9.00ms
  3998814 requests in 30.10s, 858.04MB read
Requests/sec: 132853.49
Transfer/sec:     28.51MB
### Combined result for Kong git:master:
RPS     Avg: 132084.25
Latency Avg: 1.22ms    Max: 47.50ms
   P90 (ms): 2.77, 2.85, 2.81
   P99 (ms): 9.55, 9.76, 9
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.99ms  29.99ms   88.00%
    Req/Sec    33.12k     8.68k   54.41k    59.45%
  Latency Distribution
     50%  458.00us
     75%    0.97ms
     90%    3.78ms
     99%    9.83ms
  4949358 requests in 30.10s, 1.04GB read
Requests/sec: 164431.85
Transfer/sec:     35.28MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.08ms  33.47ms   87.89%
    Req/Sec    32.24k     9.16k   53.11k    59.65%
  Latency Distribution
     50%  480.00us
     75%    0.97ms
     90%    3.98ms
     99%   10.32ms
  4817792 requests in 30.10s, 1.01GB read
Requests/sec: 160061.85
Transfer/sec:     34.35MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  35.10ms   87.83%
    Req/Sec    33.02k     9.08k   58.80k    58.52%
  Latency Distribution
     50%  473.00us
     75%    0.92ms
     90%    3.84ms
     99%    9.84ms
  4934431 requests in 30.10s, 1.03GB read
Requests/sec: 163940.06
Transfer/sec:     35.18MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 162811.25
Latency Avg: 1.25ms    Max: 35.10ms
   P90 (ms): 3.78, 3.98, 3.84
   P99 (ms): 9.83, 10.32, 9.84
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.14ms  37.01ms   88.83%
    Req/Sec    30.42k     8.38k   48.78k    57.74%
  Latency Distribution
     50%  502.00us
     75%    1.03ms
     90%    3.83ms
     99%   10.67ms
  4555143 requests in 30.10s, 0.95GB read
Requests/sec: 151333.47
Transfer/sec:     32.47MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.97ms  27.23ms   88.20%
    Req/Sec    30.89k     8.24k   49.42k    59.12%
  Latency Distribution
     50%  511.00us
     75%    0.94ms
     90%    3.79ms
     99%    9.81ms
  4616184 requests in 30.10s, 0.97GB read
Requests/sec: 153362.97
Transfer/sec:     32.91MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.13ms  36.39ms   88.63%
    Req/Sec    30.49k     8.44k   53.42k    57.58%
  Latency Distribution
     50%  499.00us
     75%    1.02ms
     90%    3.88ms
     99%   10.64ms
  4562953 requests in 30.10s, 0.96GB read
Requests/sec: 151592.98
Transfer/sec:     32.53MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 152096.47
Latency Avg: 1.28ms    Max: 37.01ms
   P90 (ms): 3.83, 3.79, 3.88
   P99 (ms): 10.67, 9.81, 10.64
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.99ms  37.31ms   90.41%
    Req/Sec    26.40k     6.64k   42.27k    61.06%
  Latency Distribution
     50%  606.00us
     75%    1.16ms
     90%    3.10ms
     99%   10.24ms
  3953751 requests in 30.10s, 848.37MB read
Requests/sec: 131353.82
Transfer/sec:     28.19MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.98ms  41.40ms   90.54%
    Req/Sec    26.38k     6.84k   43.87k    57.32%
  Latency Distribution
     50%  621.00us
     75%    1.12ms
     90%    3.03ms
     99%    9.97ms
  3942582 requests in 30.10s, 845.97MB read
Requests/sec: 130986.76
Transfer/sec:     28.11MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.00ms  45.38ms   90.31%
    Req/Sec    26.68k     6.43k   45.31k    61.33%
  Latency Distribution
     50%  611.00us
     75%    1.11ms
     90%    3.11ms
     99%    9.95ms
  3994638 requests in 30.10s, 857.14MB read
Requests/sec: 132712.49
Transfer/sec:     28.48MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131684.36
Latency Avg: 1.27ms    Max: 45.38ms
   P90 (ms): 3.1, 3.03, 3.11
   P99 (ms): 10.24, 9.97, 9.95
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    2.02ms  40.54ms   88.19%
    Req/Sec    32.76k     8.71k   55.11k    61.38%
  Latency Distribution
     50%  462.00us
     75%    0.99ms
     90%    3.77ms
     99%    9.85ms
  4896417 requests in 30.10s, 1.03GB read
Requests/sec: 162674.54
Transfer/sec:     34.91MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  31.77ms   87.90%
    Req/Sec    32.81k     8.90k   56.16k    60.59%
  Latency Distribution
     50%  466.00us
     75%    0.95ms
     90%    3.88ms
     99%   10.03ms
  4904309 requests in 30.10s, 1.03GB read
Requests/sec: 162938.61
Transfer/sec:     34.96MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  39.00ms   87.89%
    Req/Sec    32.75k     9.23k   53.43k    58.06%
  Latency Distribution
     50%  471.00us
     75%    0.95ms
     90%    3.91ms
     99%   10.05ms
  4894293 requests in 30.10s, 1.03GB read
Requests/sec: 162602.13
Transfer/sec:     34.89MB
### Combined result for Kong git:master:
RPS     Avg: 162738.43
Latency Avg: 1.25ms    Max: 40.54ms
   P90 (ms): 3.77, 3.88, 3.91
   P99 (ms): 9.85, 10.03, 10.05
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.11ms  42.04ms   88.78%
    Req/Sec    30.21k     8.53k   48.88k    59.34%
  Latency Distribution
     50%  504.00us
     75%    1.05ms
     90%    3.81ms
     99%   10.48ms
  4523955 requests in 30.10s, 0.95GB read
Requests/sec: 150297.56
Transfer/sec:     32.25MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.98ms  37.24ms   88.56%
    Req/Sec    30.71k     7.70k   49.74k    61.44%
  Latency Distribution
     50%  504.00us
     75%    0.97ms
     90%    3.70ms
     99%    9.89ms
  4595174 requests in 30.10s, 0.96GB read
Requests/sec: 152663.73
Transfer/sec:     32.76MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.99ms  32.38ms   88.35%
    Req/Sec    30.57k     8.28k   55.81k    59.07%
  Latency Distribution
     50%  513.00us
     75%    0.97ms
     90%    3.76ms
     99%    9.93ms
  4577102 requests in 30.10s, 0.96GB read
Requests/sec: 152062.88
Transfer/sec:     32.63MB
### Combined result for Kong git:master:
RPS     Avg: 151674.72
Latency Avg: 1.26ms    Max: 42.04ms
   P90 (ms): 3.81, 3.7, 3.76
   P99 (ms): 10.48, 9.89, 9.93
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.97ms  40.47ms   90.56%
    Req/Sec    26.50k     6.39k   44.70k    60.53%
  Latency Distribution
     50%  591.00us
     75%    1.18ms
     90%    2.99ms
     99%    9.99ms
  3967487 requests in 30.10s, 851.32MB read
Requests/sec: 131810.05
Transfer/sec:     28.28MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.99ms  50.42ms   90.45%
    Req/Sec    26.40k     6.58k   48.32k    60.27%
  Latency Distribution
     50%  617.00us
     75%    1.14ms
     90%    3.05ms
     99%   10.01ms
  3953700 requests in 30.10s, 848.36MB read
Requests/sec: 131352.32
Transfer/sec:     28.18MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.95ms  38.67ms   90.42%
    Req/Sec    26.52k     6.51k   43.09k    61.53%
  Latency Distribution
     50%  598.00us
     75%    1.15ms
     90%    3.03ms
     99%    9.93ms
  3971547 requests in 30.10s, 852.19MB read
Requests/sec: 131945.40
Transfer/sec:     28.31MB
### Combined result for Kong git:master:
RPS     Avg: 131702.59
Latency Avg: 1.26ms    Max: 50.42ms
   P90 (ms): 2.99, 3.05, 3.03
   P99 (ms): 9.99, 10.01, 9.93
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.17:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   569.52us    1.26ms  12.12ms   87.21%
    Req/Sec   165.50k    14.19k  246.10k    65.82%
  Latency Distribution
     50%   59.00us
     75%   99.00us
     90%    2.39ms
     99%    6.30ms
  24715910 requests in 30.10s, 3.22GB read
Requests/sec: 821132.53
Transfer/sec:    109.63MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.17:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   572.86us    1.26ms  16.05ms   87.44%
    Req/Sec   149.40k     8.83k  195.94k    75.55%
  Latency Distribution
     50%   65.00us
     75%  109.00us
     90%    2.38ms
     99%    6.38ms
  22311555 requests in 30.10s, 2.91GB read
Requests/sec: 741247.23
Transfer/sec:     98.97MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.17:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   574.69us    1.26ms  12.12ms   87.36%
    Req/Sec   149.57k     8.23k  205.44k    76.15%
  Latency Distribution
     50%   65.00us
     75%  109.00us
     90%    2.41ms
     99%    6.34ms
  22338129 requests in 30.10s, 2.91GB read
Requests/sec: 742130.80
Transfer/sec:     99.08MB
### Combined result for upstream directly:
RPS     Avg: 768170.19
Latency Avg: 0.57ms    Max: 16.05ms
   P90 (ms): 2.39, 2.38, 2.41
   P99 (ms): 6.3, 6.38, 6.34
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.13ms  38.29ms   88.38%
    Req/Sec    32.44k     8.71k   53.34k    58.39%
  Latency Distribution
     50%  462.00us
     75%    1.03ms
     90%    3.89ms
     99%   10.47ms
  4848637 requests in 30.10s, 1.02GB read
Requests/sec: 161087.72
Transfer/sec:     34.57MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  34.86ms   87.95%
    Req/Sec    32.54k     8.84k   56.27k    57.79%
  Latency Distribution
     50%  465.00us
     75%    0.99ms
     90%    3.90ms
     99%   10.09ms
  4862906 requests in 30.10s, 1.02GB read
Requests/sec: 161563.63
Transfer/sec:     34.67MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  33.65ms   87.91%
    Req/Sec    32.62k     8.97k   61.19k    61.19%
  Latency Distribution
     50%  460.00us
     75%    1.00ms
     90%    3.80ms
     99%    9.72ms
  4875056 requests in 30.10s, 1.02GB read
Requests/sec: 161966.33
Transfer/sec:     34.75MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 161539.23
Latency Avg: 1.26ms    Max: 38.29ms
   P90 (ms): 3.89, 3.9, 3.8
   P99 (ms): 10.47, 10.09, 9.72
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.02ms  40.17ms   88.36%
    Req/Sec    30.30k     8.40k   50.51k    62.13%
  Latency Distribution
     50%  510.00us
     75%    1.02ms
     90%    3.83ms
     99%   10.06ms
  4537062 requests in 30.10s, 0.95GB read
Requests/sec: 150733.03
Transfer/sec:     32.34MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.00ms  39.73ms   88.56%
    Req/Sec    30.62k     7.95k   53.88k    59.51%
  Latency Distribution
     50%  500.00us
     75%    1.01ms
     90%    3.72ms
     99%    9.85ms
  4581423 requests in 30.10s, 0.96GB read
Requests/sec: 152206.85
Transfer/sec:     32.66MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.02ms  36.13ms   88.38%
    Req/Sec    30.65k     8.19k   53.36k    60.86%
  Latency Distribution
     50%  509.00us
     75%    0.99ms
     90%    3.80ms
     99%   10.04ms
  4589369 requests in 30.10s, 0.96GB read
Requests/sec: 152471.91
Transfer/sec:     32.72MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 151803.93
Latency Avg: 1.26ms    Max: 40.17ms
   P90 (ms): 3.83, 3.72, 3.8
   P99 (ms): 10.06, 9.85, 10.04
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.91ms  37.63ms   90.16%
    Req/Sec    26.06k     6.60k   48.40k    64.19%
  Latency Distribution
     50%  603.00us
     75%    1.21ms
     90%    3.13ms
     99%    9.46ms
  3901443 requests in 30.10s, 837.14MB read
Requests/sec: 129616.08
Transfer/sec:     27.81MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.90ms  39.03ms   90.62%
    Req/Sec    25.99k     6.40k   41.82k    58.84%
  Latency Distribution
     50%  612.00us
     75%    1.19ms
     90%    2.89ms
     99%    9.46ms
  3889022 requests in 30.10s, 834.48MB read
Requests/sec: 129203.44
Transfer/sec:     27.72MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.89ms  41.83ms   90.58%
    Req/Sec    26.12k     6.23k   42.04k    60.73%
  Latency Distribution
     50%  622.00us
     75%    1.15ms
     90%    2.88ms
     99%    9.44ms
  3910935 requests in 30.10s, 839.18MB read
Requests/sec: 129931.77
Transfer/sec:     27.88MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 129583.76
Latency Avg: 1.25ms    Max: 41.83ms
   P90 (ms): 3.13, 2.89, 2.88
   P99 (ms): 9.46, 9.46, 9.44
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  35.19ms   88.05%
    Req/Sec    32.65k     8.44k   58.35k    61.19%
  Latency Distribution
     50%  463.00us
     75%    1.00ms
     90%    3.79ms
     99%    9.85ms
  4879530 requests in 30.10s, 1.02GB read
Requests/sec: 162116.72
Transfer/sec:     34.79MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.05ms  35.29ms   87.97%
    Req/Sec    32.69k     9.13k   54.43k    61.12%
  Latency Distribution
     50%  469.00us
     75%    0.96ms
     90%    3.89ms
     99%   10.07ms
  4885577 requests in 30.10s, 1.02GB read
Requests/sec: 162316.07
Transfer/sec:     34.83MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.15:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  33.32ms   87.90%
    Req/Sec    32.73k     9.03k   60.58k    57.81%
  Latency Distribution
     50%  472.00us
     75%    0.95ms
     90%    3.89ms
     99%    9.95ms
  4900537 requests in 30.10s, 1.03GB read
Requests/sec: 162809.09
Transfer/sec:     34.93MB
### Combined result for Kong git:master:
RPS     Avg: 162413.96
Latency Avg: 1.25ms    Max: 35.29ms
   P90 (ms): 3.79, 3.89, 3.89
   P99 (ms): 9.85, 10.07, 9.95
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  34.11ms   88.66%
    Req/Sec    30.43k     8.04k   50.21k    59.14%
  Latency Distribution
     50%  487.00us
     75%    1.06ms
     90%    3.75ms
     99%   10.18ms
  4556248 requests in 30.10s, 0.95GB read
Requests/sec: 151370.40
Transfer/sec:     32.48MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.07ms  35.57ms   88.69%
    Req/Sec    30.28k     8.10k   52.58k    56.94%
  Latency Distribution
     50%  509.00us
     75%    1.04ms
     90%    3.78ms
     99%   10.37ms
  4534132 requests in 30.10s, 0.95GB read
Requests/sec: 150635.32
Transfer/sec:     32.32MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.11ms  35.32ms   88.63%
    Req/Sec    30.41k     8.23k   54.61k    59.20%
  Latency Distribution
     50%  505.00us
     75%    1.02ms
     90%    3.85ms
     99%   10.59ms
  4554070 requests in 30.10s, 0.95GB read
Requests/sec: 151298.03
Transfer/sec:     32.46MB
### Combined result for Kong git:master:
RPS     Avg: 151101.25
Latency Avg: 1.28ms    Max: 35.57ms
   P90 (ms): 3.75, 3.78, 3.85
   P99 (ms): 10.18, 10.37, 10.59
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.87ms  34.95ms   90.46%
    Req/Sec    26.35k     6.27k   43.46k    60.64%
  Latency Distribution
     50%  604.00us
     75%    1.16ms
     90%    2.92ms
     99%    9.36ms
  3942394 requests in 30.10s, 845.93MB read
Requests/sec: 130976.58
Transfer/sec:     28.10MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.02ms  48.77ms   90.61%
    Req/Sec    26.03k     6.76k   45.65k    60.86%
  Latency Distribution
     50%  618.00us
     75%    1.17ms
     90%    3.02ms
     99%   10.27ms
  3897496 requests in 30.10s, 836.30MB read
Requests/sec: 129484.95
Transfer/sec:     27.78MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.15:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    1.97ms  38.89ms   90.65%
    Req/Sec    25.99k     6.57k   40.20k    60.93%
  Latency Distribution
     50%  597.00us
     75%    1.24ms
     90%    3.01ms
     99%    9.99ms
  3891356 requests in 30.10s, 834.98MB read
Requests/sec: 129280.76
Transfer/sec:     27.74MB
### Combined result for Kong git:master:
RPS     Avg: 129914.10
Latency Avg: 1.27ms    Max: 48.77ms
   P90 (ms): 2.92, 3.02, 3.01
   P99 (ms): 9.36, 10.27, 9.99
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@@ -1448,6 +1450,20 @@ function _M.new(routes, cache, cache_neg)
local match_sources = not isempty(plain_indexes.sources)
local match_destinations = not isempty(plain_indexes.destinations)

-- warning about the regex cache size being too small
if not lua_regex_cache_max_entries then
lua_regex_cache_max_entries = kong.configuration.nginx_http_lua_regex_cache_max_entries or 1024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we default here to 8192 too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems non-sense because OpenResty's default value of lua_regex_cache_max_entries is 1024 (https://github.com/openresty/lua-nginx-module/blob/master/README.markdown#lua_regex_cache_max_entries), we set the nginx_http_lua_regex_cache_max_entries to 8192, but the user could overwrite it.

@mayocream mayocream force-pushed the fix/lua_regex_cache_max_entries branch from ae2eb90 to 4e29ac0 Compare October 30, 2022 06:49
@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.95ms  34.74ms   88.08%
    Req/Sec    32.86k     8.94k   55.58k    61.65%
  Latency Distribution
     50%  462.00us
     75%    1.02ms
     90%    3.72ms
     99%    9.65ms
  4910440 requests in 30.10s, 1.03GB read
Requests/sec: 163141.11
Transfer/sec:     35.01MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.08ms  34.75ms   88.22%
    Req/Sec    32.48k     9.52k   70.02k    59.85%
  Latency Distribution
     50%  462.00us
     75%    1.08ms
     90%    3.88ms
     99%   10.24ms
  4854372 requests in 30.10s, 1.02GB read
Requests/sec: 161277.61
Transfer/sec:     34.61MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  40.15ms   88.07%
    Req/Sec    32.72k     8.80k   65.70k    63.49%
  Latency Distribution
     50%  460.00us
     75%    1.04ms
     90%    3.75ms
     99%    9.64ms
  4885736 requests in 30.10s, 1.02GB read
Requests/sec: 162322.51
Transfer/sec:     34.83MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 162247.08
Latency Avg: 1.24ms    Max: 40.15ms
   P90 (ms): 3.72, 3.88, 3.75
   P99 (ms): 9.65, 10.24, 9.64
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.10ms  38.87ms   88.67%
    Req/Sec    30.65k     8.41k   49.66k    59.71%
  Latency Distribution
     50%  504.00us
     75%    1.03ms
     90%    3.82ms
     99%   10.46ms
  4586043 requests in 30.10s, 0.96GB read
Requests/sec: 152364.48
Transfer/sec:     32.69MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.16ms  44.62ms   88.89%
    Req/Sec    30.48k     8.67k   52.37k    59.48%
  Latency Distribution
     50%  502.00us
     75%    1.09ms
     90%    3.83ms
     99%   10.64ms
  4557526 requests in 30.10s, 0.96GB read
Requests/sec: 151417.00
Transfer/sec:     32.49MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.03ms  31.44ms   88.48%
    Req/Sec    30.82k     8.28k   54.68k    59.38%
  Latency Distribution
     50%  519.00us
     75%    0.99ms
     90%    3.78ms
     99%   10.12ms
  4612510 requests in 30.10s, 0.97GB read
Requests/sec: 153239.25
Transfer/sec:     32.88MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 152340.24
Latency Avg: 1.28ms    Max: 44.62ms
   P90 (ms): 3.82, 3.83, 3.78
   P99 (ms): 10.46, 10.64, 10.12
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.37ms    2.23ms  42.96ms   90.71%
    Req/Sec    26.10k     7.12k   47.72k    61.77%
  Latency Distribution
     50%  588.00us
     75%    1.29ms
     90%    3.39ms
     99%   11.25ms
  3904921 requests in 30.10s, 837.89MB read
Requests/sec: 129735.03
Transfer/sec:     27.84MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.02ms  41.20ms   90.32%
    Req/Sec    26.55k     7.04k   49.06k    61.21%
  Latency Distribution
     50%  626.00us
     75%    1.13ms
     90%    3.16ms
     99%   10.14ms
  3970226 requests in 30.10s, 851.90MB read
Requests/sec: 131904.96
Transfer/sec:     28.30MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.95ms  33.03ms   90.44%
    Req/Sec    26.32k     6.83k   48.09k    62.90%
  Latency Distribution
     50%  621.00us
     75%    1.18ms
     90%    3.02ms
     99%    9.95ms
  3939346 requests in 30.10s, 845.28MB read
Requests/sec: 130878.83
Transfer/sec:     28.08MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 130839.61
Latency Avg: 1.30ms    Max: 42.96ms
   P90 (ms): 3.39, 3.16, 3.02
   P99 (ms): 11.25, 10.14, 9.95
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.11ms  53.55ms   88.44%
    Req/Sec    32.27k     8.92k   57.97k    62.58%
  Latency Distribution
     50%  466.00us
     75%    1.11ms
     90%    3.87ms
     99%   10.32ms
  4823052 requests in 30.10s, 1.01GB read
Requests/sec: 160237.78
Transfer/sec:     34.38MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.10ms  35.07ms   88.14%
    Req/Sec    32.73k     9.23k   68.08k    60.32%
  Latency Distribution
     50%  470.00us
     75%    1.02ms
     90%    3.91ms
     99%   10.32ms
  4891818 requests in 30.10s, 1.03GB read
Requests/sec: 162519.55
Transfer/sec:     34.87MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  29.28ms   87.81%
    Req/Sec    32.87k     9.00k   62.35k    61.45%
  Latency Distribution
     50%  474.00us
     75%    0.98ms
     90%    3.83ms
     99%    9.66ms
  4913302 requests in 30.10s, 1.03GB read
Requests/sec: 163235.48
Transfer/sec:     35.03MB
### Combined result for Kong git:master:
RPS     Avg: 161997.60
Latency Avg: 1.26ms    Max: 53.55ms
   P90 (ms): 3.87, 3.91, 3.83
   P99 (ms): 10.32, 10.32, 9.66
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.11ms  37.88ms   88.90%
    Req/Sec    30.47k     8.43k   55.11k    61.57%
  Latency Distribution
     50%  498.00us
     75%    1.10ms
     90%    3.78ms
     99%   10.55ms
  4560284 requests in 30.10s, 0.96GB read
Requests/sec: 151508.57
Transfer/sec:     32.51MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.02ms  35.71ms   88.59%
    Req/Sec    30.48k     8.62k   60.67k    61.00%
  Latency Distribution
     50%  508.00us
     75%    1.06ms
     90%    3.73ms
     99%   10.02ms
  4564026 requests in 30.10s, 0.96GB read
Requests/sec: 151628.69
Transfer/sec:     32.54MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  36.77ms   88.77%
    Req/Sec    30.54k     8.32k   54.76k    60.55%
  Latency Distribution
     50%  504.00us
     75%    1.05ms
     90%    3.70ms
     99%   10.11ms
  4567003 requests in 30.10s, 0.96GB read
Requests/sec: 151732.20
Transfer/sec:     32.56MB
### Combined result for Kong git:master:
RPS     Avg: 151623.15
Latency Avg: 1.27ms    Max: 37.88ms
   P90 (ms): 3.78, 3.73, 3.7
   P99 (ms): 10.55, 10.02, 10.11
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.03ms  44.69ms   90.52%
    Req/Sec    26.36k     6.93k   45.15k    60.90%
  Latency Distribution
     50%  597.00us
     75%    1.21ms
     90%    3.14ms
     99%   10.14ms
  3945247 requests in 30.10s, 846.54MB read
Requests/sec: 131074.79
Transfer/sec:     28.13MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.33ms    2.22ms  49.85ms   90.71%
    Req/Sec    26.46k     6.68k   43.53k    60.31%
  Latency Distribution
     50%  616.00us
     75%    1.17ms
     90%    3.24ms
     99%   11.25ms
  3958393 requests in 30.10s, 849.37MB read
Requests/sec: 131511.70
Transfer/sec:     28.22MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.96ms  39.35ms   90.33%
    Req/Sec    26.35k     6.98k   50.36k    63.63%
  Latency Distribution
     50%  623.00us
     75%    1.17ms
     90%    3.08ms
     99%    9.93ms
  3943403 requests in 30.10s, 846.15MB read
Requests/sec: 131013.73
Transfer/sec:     28.11MB
### Combined result for Kong git:master:
RPS     Avg: 131200.07
Latency Avg: 1.30ms    Max: 49.85ms
   P90 (ms): 3.14, 3.24, 3.08
   P99 (ms): 10.14, 11.25, 9.93
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.9:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   564.72us    1.25ms  12.10ms   87.16%
    Req/Sec   171.16k    11.42k  213.26k    71.75%
  Latency Distribution
     50%   57.00us
     75%   95.00us
     90%    2.41ms
     99%    6.28ms
  25558405 requests in 30.10s, 3.33GB read
Requests/sec: 849118.73
Transfer/sec:    113.37MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.9:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   571.65us    1.27ms  24.11ms   87.33%
    Req/Sec   156.28k     7.67k  196.18k    71.42%
  Latency Distribution
     50%   62.00us
     75%  104.00us
     90%    2.40ms
     99%    6.36ms
  23341039 requests in 30.10s, 3.04GB read
Requests/sec: 775464.20
Transfer/sec:    103.54MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.9:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   573.37us    1.26ms  12.10ms   87.18%
    Req/Sec   155.81k     8.31k  212.33k    75.15%
  Latency Distribution
     50%   62.00us
     75%  104.00us
     90%    2.40ms
     99%    6.34ms
  23263514 requests in 30.10s, 3.03GB read
Requests/sec: 772874.55
Transfer/sec:    103.19MB
### Combined result for upstream directly:
RPS     Avg: 799152.49
Latency Avg: 0.57ms    Max: 24.11ms
   P90 (ms): 2.41, 2.4, 2.4
   P99 (ms): 6.28, 6.36, 6.34
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.01ms  33.79ms   87.85%
    Req/Sec    32.74k     9.32k   58.89k    61.72%
  Latency Distribution
     50%  468.00us
     75%    1.01ms
     90%    3.88ms
     99%    9.85ms
  4892149 requests in 30.10s, 1.03GB read
Requests/sec: 162534.84
Transfer/sec:     34.88MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.05ms  34.25ms   87.99%
    Req/Sec    32.49k     8.81k   60.43k    60.79%
  Latency Distribution
     50%  472.00us
     75%    1.01ms
     90%    3.91ms
     99%   10.07ms
  4855231 requests in 30.10s, 1.02GB read
Requests/sec: 161309.27
Transfer/sec:     34.61MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  29.78ms   88.09%
    Req/Sec    32.68k     8.83k   62.58k    61.58%
  Latency Distribution
     50%  463.00us
     75%    1.03ms
     90%    3.85ms
     99%   10.01ms
  4883833 requests in 30.10s, 1.02GB read
Requests/sec: 162256.95
Transfer/sec:     34.82MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 162033.69
Latency Avg: 1.25ms    Max: 34.25ms
   P90 (ms): 3.88, 3.91, 3.85
   P99 (ms): 9.85, 10.07, 10.01
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.03ms  41.01ms   88.61%
    Req/Sec    30.64k     8.33k   53.86k    60.77%
  Latency Distribution
     50%  521.00us
     75%    1.00ms
     90%    3.74ms
     99%   10.07ms
  4585068 requests in 30.10s, 0.96GB read
Requests/sec: 152332.03
Transfer/sec:     32.69MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.01ms  38.29ms   88.66%
    Req/Sec    30.48k     8.46k   55.49k    60.66%
  Latency Distribution
     50%  497.00us
     75%    1.08ms
     90%    3.71ms
     99%    9.95ms
  4563499 requests in 30.10s, 0.96GB read
Requests/sec: 151612.16
Transfer/sec:     32.53MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.12ms  40.40ms   88.75%
    Req/Sec    30.56k     8.49k   52.72k    59.15%
  Latency Distribution
     50%  512.00us
     75%    1.04ms
     90%    3.83ms
     99%   10.53ms
  4570450 requests in 30.10s, 0.96GB read
Requests/sec: 151846.54
Transfer/sec:     32.58MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 151930.24
Latency Avg: 1.27ms    Max: 41.01ms
   P90 (ms): 3.74, 3.71, 3.83
   P99 (ms): 10.07, 9.95, 10.53
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    1.96ms  36.04ms   90.77%
    Req/Sec    25.86k     6.82k   53.25k    63.96%
  Latency Distribution
     50%  613.00us
     75%    1.27ms
     90%    2.93ms
     99%   10.03ms
  3869666 requests in 30.10s, 830.33MB read
Requests/sec: 128563.74
Transfer/sec:     27.59MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    1.96ms  35.60ms   90.57%
    Req/Sec    26.08k     6.73k   46.40k    61.41%
  Latency Distribution
     50%  634.00us
     75%    1.18ms
     90%    3.02ms
     99%    9.84ms
  3900297 requests in 30.10s, 836.90MB read
Requests/sec: 129581.63
Transfer/sec:     27.80MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.33ms    2.08ms  45.47ms   90.47%
    Req/Sec    25.90k     6.84k   45.63k    62.17%
  Latency Distribution
     50%  586.00us
     75%    1.33ms
     90%    3.29ms
     99%   10.39ms
  3875666 requests in 30.10s, 831.61MB read
Requests/sec: 128759.19
Transfer/sec:     27.63MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 128968.19
Latency Avg: 1.30ms    Max: 45.47ms
   P90 (ms): 2.93, 3.02, 3.29
   P99 (ms): 10.03, 9.84, 10.39
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.03ms  33.58ms   88.19%
    Req/Sec    32.49k     8.92k   54.41k    61.17%
  Latency Distribution
     50%  468.00us
     75%    1.05ms
     90%    3.83ms
     99%    9.96ms
  4861794 requests in 30.10s, 1.02GB read
Requests/sec: 161521.35
Transfer/sec:     34.66MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.01ms  35.53ms   88.19%
    Req/Sec    32.47k     9.01k   61.32k    60.85%
  Latency Distribution
     50%  476.00us
     75%    1.04ms
     90%    3.79ms
     99%    9.89ms
  4851782 requests in 30.10s, 1.02GB read
Requests/sec: 161190.65
Transfer/sec:     34.59MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.7:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  33.90ms   87.92%
    Req/Sec    32.79k     9.04k   63.86k    58.66%
  Latency Distribution
     50%  464.00us
     75%    1.02ms
     90%    3.90ms
     99%   10.04ms
  4900346 requests in 30.10s, 1.03GB read
Requests/sec: 162803.89
Transfer/sec:     34.93MB
### Combined result for Kong git:master:
RPS     Avg: 161838.63
Latency Avg: 1.26ms    Max: 35.53ms
   P90 (ms): 3.83, 3.79, 3.9
   P99 (ms): 9.96, 9.89, 10.04
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.98ms  33.30ms   88.63%
    Req/Sec    30.43k     8.31k   54.80k    63.59%
  Latency Distribution
     50%  501.00us
     75%    1.10ms
     90%    3.69ms
     99%    9.88ms
  4557100 requests in 30.10s, 0.95GB read
Requests/sec: 151398.82
Transfer/sec:     32.49MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.01ms  35.75ms   88.58%
    Req/Sec    30.60k     8.41k   57.25k    59.64%
  Latency Distribution
     50%  508.00us
     75%    1.04ms
     90%    3.72ms
     99%    9.91ms
  4578429 requests in 30.10s, 0.96GB read
Requests/sec: 152111.49
Transfer/sec:     32.64MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.08ms  37.10ms   88.86%
    Req/Sec    30.27k     8.36k   52.66k    59.00%
  Latency Distribution
     50%  496.00us
     75%    1.11ms
     90%    3.75ms
     99%   10.45ms
  4532359 requests in 30.10s, 0.95GB read
Requests/sec: 150576.24
Transfer/sec:     32.31MB
### Combined result for Kong git:master:
RPS     Avg: 151362.18
Latency Avg: 1.26ms    Max: 37.10ms
   P90 (ms): 3.69, 3.72, 3.75
   P99 (ms): 9.88, 9.91, 10.45
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.33ms    2.06ms  39.02ms   90.57%
    Req/Sec    25.62k     6.86k   49.31k    63.10%
  Latency Distribution
     50%  592.00us
     75%    1.34ms
     90%    3.24ms
     99%   10.45ms
  3834265 requests in 30.10s, 822.73MB read
Requests/sec: 127387.63
Transfer/sec:     27.33MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.31ms    2.09ms  40.35ms   90.70%
    Req/Sec    26.16k     6.61k   42.54k    61.79%
  Latency Distribution
     50%  608.00us
     75%    1.22ms
     90%    3.09ms
     99%   10.63ms
  3917386 requests in 30.10s, 840.57MB read
Requests/sec: 130145.32
Transfer/sec:     27.93MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.7:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.00ms  36.82ms   90.60%
    Req/Sec    26.24k     6.75k   49.51k    61.00%
  Latency Distribution
     50%  589.00us
     75%    1.23ms
     90%    3.07ms
     99%   10.01ms
  3928905 requests in 30.10s, 843.04MB read
Requests/sec: 130528.17
Transfer/sec:     28.01MB
### Combined result for Kong git:master:
RPS     Avg: 129353.71
Latency Avg: 1.31ms    Max: 40.35ms
   P90 (ms): 3.24, 3.09, 3.07
   P99 (ms): 10.45, 10.63, 10.01
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    2.00ms  36.88ms   88.12%
    Req/Sec    33.22k     8.43k   55.95k    60.92%
  Latency Distribution
     50%  466.00us
     75%    0.97ms
     90%    3.76ms
     99%    9.94ms
  4964263 requests in 30.10s, 1.04GB read
Requests/sec: 164926.88
Transfer/sec:     35.39MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.98ms  31.66ms   88.09%
    Req/Sec    32.78k     8.80k   56.81k    60.59%
  Latency Distribution
     50%  473.00us
     75%    0.99ms
     90%    3.76ms
     99%    9.78ms
  4899312 requests in 30.10s, 1.03GB read
Requests/sec: 162771.58
Transfer/sec:     34.93MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.99ms  33.52ms   87.88%
    Req/Sec    33.17k     8.67k   64.55k    59.96%
  Latency Distribution
     50%  472.00us
     75%    0.95ms
     90%    3.82ms
     99%    9.81ms
  4953762 requests in 30.10s, 1.04GB read
Requests/sec: 164578.33
Transfer/sec:     35.31MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164092.26
Latency Avg: 1.23ms    Max: 36.88ms
   P90 (ms): 3.76, 3.76, 3.82
   P99 (ms): 9.94, 9.78, 9.81
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  33.43ms   88.41%
    Req/Sec    31.11k     7.97k   49.62k    60.64%
  Latency Distribution
     50%  506.00us
     75%    0.97ms
     90%    3.74ms
     99%    9.93ms
  4655163 requests in 30.10s, 0.98GB read
Requests/sec: 154660.84
Transfer/sec:     33.19MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.23ms  54.79ms   89.14%
    Req/Sec    30.73k     8.18k   52.43k    59.59%
  Latency Distribution
     50%  497.00us
     75%    1.06ms
     90%    3.81ms
     99%   10.90ms
  4592382 requests in 30.10s, 0.96GB read
Requests/sec: 152572.21
Transfer/sec:     32.74MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  33.21ms   88.44%
    Req/Sec    30.91k     8.22k   53.14k    59.28%
  Latency Distribution
     50%  501.00us
     75%    1.02ms
     90%    3.79ms
     99%   10.10ms
  4621565 requests in 30.10s, 0.97GB read
Requests/sec: 153544.50
Transfer/sec:     32.95MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153592.52
Latency Avg: 1.27ms    Max: 54.79ms
   P90 (ms): 3.74, 3.81, 3.79
   P99 (ms): 9.93, 10.9, 10.1
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.04ms  35.64ms   90.71%
    Req/Sec    26.57k     6.36k   49.45k    62.01%
  Latency Distribution
     50%  611.00us
     75%    1.15ms
     90%    3.01ms
     99%   10.47ms
  3972868 requests in 30.10s, 852.47MB read
Requests/sec: 131992.32
Transfer/sec:     28.32MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.03ms  48.99ms   90.26%
    Req/Sec    26.71k     6.74k   47.94k    62.46%
  Latency Distribution
     50%  629.00us
     75%    1.08ms
     90%    3.19ms
     99%   10.29ms
  3999726 requests in 30.10s, 858.23MB read
Requests/sec: 132880.87
Transfer/sec:     28.51MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.88ms  49.45ms   90.38%
    Req/Sec    26.65k     6.23k   45.16k    60.53%
  Latency Distribution
     50%  618.00us
     75%    1.12ms
     90%    2.95ms
     99%    9.56ms
  3990842 requests in 30.10s, 856.33MB read
Requests/sec: 132585.73
Transfer/sec:     28.45MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 132486.31
Latency Avg: 1.26ms    Max: 49.45ms
   P90 (ms): 3.01, 3.19, 2.95
   P99 (ms): 10.47, 10.29, 9.56
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.06ms  41.00ms   88.26%
    Req/Sec    32.55k     8.99k   52.57k    59.52%
  Latency Distribution
     50%  472.00us
     75%    1.03ms
     90%    3.82ms
     99%   10.11ms
  4864365 requests in 30.10s, 1.02GB read
Requests/sec: 161611.51
Transfer/sec:     34.68MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    2.02ms  38.23ms   87.92%
    Req/Sec    33.13k     8.67k   60.23k    60.39%
  Latency Distribution
     50%  474.00us
     75%    0.94ms
     90%    3.84ms
     99%    9.94ms
  4950861 requests in 30.10s, 1.04GB read
Requests/sec: 164485.63
Transfer/sec:     35.29MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.17ms  39.48ms   88.53%
    Req/Sec    32.92k     8.78k   59.00k    60.85%
  Latency Distribution
     50%  454.00us
     75%    1.05ms
     90%    3.89ms
     99%   10.63ms
  4919871 requests in 30.10s, 1.03GB read
Requests/sec: 163451.89
Transfer/sec:     35.07MB
### Combined result for Kong git:master:
RPS     Avg: 163183.01
Latency Avg: 1.26ms    Max: 41.00ms
   P90 (ms): 3.82, 3.84, 3.89
   P99 (ms): 10.11, 9.94, 10.63
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  38.21ms   88.58%
    Req/Sec    30.89k     7.95k   49.16k    59.57%
  Latency Distribution
     50%  503.00us
     75%    1.01ms
     90%    3.73ms
     99%   10.16ms
  4623437 requests in 30.10s, 0.97GB read
Requests/sec: 153606.88
Transfer/sec:     32.96MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.01ms  33.53ms   88.75%
    Req/Sec    30.52k     8.10k   52.56k    62.08%
  Latency Distribution
     50%  496.00us
     75%    1.08ms
     90%    3.69ms
     99%   10.04ms
  4565278 requests in 30.10s, 0.96GB read
Requests/sec: 151674.43
Transfer/sec:     32.55MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.98ms  30.98ms   88.22%
    Req/Sec    31.22k     8.01k   52.41k    58.41%
  Latency Distribution
     50%  501.00us
     75%    0.97ms
     90%    3.78ms
     99%    9.85ms
  4676106 requests in 30.10s, 0.98GB read
Requests/sec: 155351.86
Transfer/sec:     33.33MB
### Combined result for Kong git:master:
RPS     Avg: 153544.39
Latency Avg: 1.25ms    Max: 38.21ms
   P90 (ms): 3.73, 3.69, 3.78
   P99 (ms): 10.16, 10.04, 9.85
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.96ms  34.02ms   90.39%
    Req/Sec    26.59k     6.49k   47.12k    61.30%
  Latency Distribution
     50%  619.00us
     75%    1.15ms
     90%    3.04ms
     99%   10.03ms
  3978854 requests in 30.10s, 853.76MB read
Requests/sec: 132191.40
Transfer/sec:     28.36MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.94ms  39.00ms   90.33%
    Req/Sec    26.68k     6.52k   47.53k    62.52%
  Latency Distribution
     50%  601.00us
     75%    1.17ms
     90%    3.07ms
     99%    9.84ms
  3994601 requests in 30.10s, 857.13MB read
Requests/sec: 132710.74
Transfer/sec:     28.48MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    1.98ms  44.96ms   90.45%
    Req/Sec    26.50k     6.57k   47.93k    61.97%
  Latency Distribution
     50%  598.00us
     75%    1.20ms
     90%    3.10ms
     99%   10.09ms
  3965816 requests in 30.10s, 850.96MB read
Requests/sec: 131758.25
Transfer/sec:     28.27MB
### Combined result for Kong git:master:
RPS     Avg: 132220.13
Latency Avg: 1.26ms    Max: 44.96ms
   P90 (ms): 3.04, 3.07, 3.1
   P99 (ms): 10.03, 9.84, 10.09
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   573.79us    1.27ms  12.14ms   87.13%
    Req/Sec   164.35k    13.13k  219.82k    67.02%
  Latency Distribution
     50%   58.00us
     75%  100.00us
     90%    2.42ms
     99%    6.35ms
  24548395 requests in 30.10s, 3.20GB read
Requests/sec: 815575.47
Transfer/sec:    108.89MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   573.11us    1.26ms  20.67ms   87.32%
    Req/Sec   150.43k     8.32k  211.48k    79.35%
  Latency Distribution
     50%   64.00us
     75%  108.00us
     90%    2.39ms
     99%    6.30ms
  22467588 requests in 30.10s, 2.93GB read
Requests/sec: 746432.61
Transfer/sec:     99.66MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   572.85us    1.26ms  16.03ms   87.43%
    Req/Sec   150.67k     8.49k  200.96k    76.13%
  Latency Distribution
     50%   64.00us
     75%  108.00us
     90%    2.38ms
     99%    6.36ms
  22489668 requests in 30.03s, 2.93GB read
Requests/sec: 748980.77
Transfer/sec:    100.00MB
### Combined result for upstream directly:
RPS     Avg: 770329.62
Latency Avg: 0.57ms    Max: 20.67ms
   P90 (ms): 2.42, 2.39, 2.38
   P99 (ms): 6.35, 6.3, 6.36
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  28.92ms   87.90%
    Req/Sec    33.08k     8.66k   58.70k    59.45%
  Latency Distribution
     50%  472.00us
     75%    0.96ms
     90%    3.81ms
     99%    9.79ms
  4943214 requests in 30.10s, 1.04GB read
Requests/sec: 164231.60
Transfer/sec:     35.24MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.37ms    2.33ms  36.51ms   88.59%
    Req/Sec    32.31k     9.37k   59.51k    62.85%
  Latency Distribution
     50%  463.00us
     75%    1.10ms
     90%    4.13ms
     99%   11.54ms
  4827618 requests in 30.10s, 1.01GB read
Requests/sec: 160390.59
Transfer/sec:     34.42MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.05ms  30.65ms   87.99%
    Req/Sec    32.76k     8.68k   54.83k    59.79%
  Latency Distribution
     50%  472.00us
     75%    0.98ms
     90%    3.88ms
     99%   10.15ms
  4895047 requests in 30.10s, 1.03GB read
Requests/sec: 162630.57
Transfer/sec:     34.90MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 162417.59
Latency Avg: 1.29ms    Max: 36.51ms
   P90 (ms): 3.81, 4.13, 3.88
   P99 (ms): 9.79, 11.54, 10.15
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.02ms  46.12ms   88.63%
    Req/Sec    30.79k     7.76k   51.02k    59.60%
  Latency Distribution
     50%  509.00us
     75%    1.02ms
     90%    3.71ms
     99%   10.02ms
  4611857 requests in 30.10s, 0.97GB read
Requests/sec: 153217.43
Transfer/sec:     32.88MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.00ms  33.23ms   88.42%
    Req/Sec    31.07k     8.01k   51.77k    59.51%
  Latency Distribution
     50%  495.00us
     75%    1.01ms
     90%    3.75ms
     99%   10.01ms
  4648908 requests in 30.10s, 0.97GB read
Requests/sec: 154453.06
Transfer/sec:     33.14MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.09ms  40.76ms   88.83%
    Req/Sec    31.06k     7.86k   72.81k    60.03%
  Latency Distribution
     50%  488.00us
     75%    1.04ms
     90%    3.73ms
     99%   10.32ms
  4638984 requests in 30.10s, 0.97GB read
Requests/sec: 154122.76
Transfer/sec:     33.07MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153931.08
Latency Avg: 1.25ms    Max: 46.12ms
   P90 (ms): 3.71, 3.75, 3.73
   P99 (ms): 10.02, 10.01, 10.32
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.91ms  36.10ms   90.46%
    Req/Sec    26.48k     6.18k   41.33k    59.71%
  Latency Distribution
     50%  626.00us
     75%    1.12ms
     90%    2.96ms
     99%    9.66ms
  3963629 requests in 30.10s, 850.49MB read
Requests/sec: 131685.61
Transfer/sec:     28.26MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.97ms  41.36ms   90.30%
    Req/Sec    26.60k     6.40k   43.09k    61.06%
  Latency Distribution
     50%  630.00us
     75%    1.11ms
     90%    3.11ms
     99%    9.99ms
  3983259 requests in 30.10s, 854.70MB read
Requests/sec: 132333.98
Transfer/sec:     28.40MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.90ms  31.70ms   90.61%
    Req/Sec    26.14k     6.31k   43.39k    62.08%
  Latency Distribution
     50%  619.00us
     75%    1.20ms
     90%    2.91ms
     99%    9.66ms
  3910083 requests in 30.10s, 839.00MB read
Requests/sec: 129906.72
Transfer/sec:     27.87MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131308.77
Latency Avg: 1.25ms    Max: 41.36ms
   P90 (ms): 2.96, 3.11, 2.91
   P99 (ms): 9.66, 9.99, 9.66
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  32.98ms   87.89%
    Req/Sec    32.74k     8.70k   53.96k    60.53%
  Latency Distribution
     50%  474.00us
     75%    1.00ms
     90%    3.83ms
     99%    9.86ms
  4901831 requests in 30.10s, 1.03GB read
Requests/sec: 162850.94
Transfer/sec:     34.94MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  31.50ms   87.66%
    Req/Sec    33.36k     8.71k   56.53k    60.92%
  Latency Distribution
     50%  475.00us
     75%    0.92ms
     90%    3.87ms
     99%    9.78ms
  4985006 requests in 30.10s, 1.04GB read
Requests/sec: 165619.66
Transfer/sec:     35.54MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.97ms  28.46ms   87.75%
    Req/Sec    32.94k     8.46k   54.23k    61.45%
  Latency Distribution
     50%  471.00us
     75%    0.97ms
     90%    3.87ms
     99%    9.74ms
  4923364 requests in 30.10s, 1.03GB read
Requests/sec: 163570.21
Transfer/sec:     35.10MB
### Combined result for Kong git:master:
RPS     Avg: 164013.60
Latency Avg: 1.24ms    Max: 32.98ms
   P90 (ms): 3.83, 3.87, 3.87
   P99 (ms): 9.86, 9.78, 9.74
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  33.67ms   88.73%
    Req/Sec    30.78k     7.97k   50.47k    59.84%
  Latency Distribution
     50%  500.00us
     75%    1.05ms
     90%    3.72ms
     99%   10.31ms
  4606726 requests in 30.10s, 0.97GB read
Requests/sec: 153051.46
Transfer/sec:     32.84MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.10ms  35.15ms   88.62%
    Req/Sec    30.78k     8.12k   52.93k    58.64%
  Latency Distribution
     50%  499.00us
     75%    1.04ms
     90%    3.84ms
     99%   10.47ms
  4606448 requests in 30.10s, 0.97GB read
Requests/sec: 153037.81
Transfer/sec:     32.84MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.99ms  32.09ms   88.69%
    Req/Sec    30.56k     8.09k   60.26k    62.54%
  Latency Distribution
     50%  496.00us
     75%    1.08ms
     90%    3.67ms
     99%   10.04ms
  4570202 requests in 30.10s, 0.96GB read
Requests/sec: 151838.22
Transfer/sec:     32.58MB
### Combined result for Kong git:master:
RPS     Avg: 152642.50
Latency Avg: 1.26ms    Max: 35.15ms
   P90 (ms): 3.72, 3.84, 3.67
   P99 (ms): 10.31, 10.47, 10.04
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.04ms  38.37ms   90.53%
    Req/Sec    26.24k     6.42k   46.95k    62.17%
  Latency Distribution
     50%  617.00us
     75%    1.17ms
     90%    3.12ms
     99%   10.43ms
  3927100 requests in 30.10s, 842.65MB read
Requests/sec: 130471.91
Transfer/sec:     28.00MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    2.01ms  37.62ms   90.45%
    Req/Sec    26.26k     6.53k   46.09k    61.90%
  Latency Distribution
     50%  626.00us
     75%    1.14ms
     90%    3.08ms
     99%   10.24ms
  3930574 requests in 30.10s, 843.40MB read
Requests/sec: 130587.37
Transfer/sec:     28.02MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.90ms  37.35ms   90.18%
    Req/Sec    26.33k     6.27k   43.88k    62.77%
  Latency Distribution
     50%  624.00us
     75%    1.15ms
     90%    3.10ms
     99%    9.49ms
  3939932 requests in 30.10s, 845.40MB read
Requests/sec: 130898.53
Transfer/sec:     28.09MB
### Combined result for Kong git:master:
RPS     Avg: 130652.60
Latency Avg: 1.28ms    Max: 38.37ms
   P90 (ms): 3.12, 3.08, 3.1
   P99 (ms): 10.43, 10.24, 9.49
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.86ms  33.60ms   88.35%
    Req/Sec    33.23k     8.76k   58.11k    62.32%
  Latency Distribution
     50%  466.00us
     75%    1.00ms
     90%    3.48ms
     99%    9.15ms
  4965927 requests in 30.10s, 1.04GB read
Requests/sec: 164986.22
Transfer/sec:     35.40MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.87ms  36.08ms   88.13%
    Req/Sec    33.17k     9.01k   61.84k    59.45%
  Latency Distribution
     50%  475.00us
     75%    0.95ms
     90%    3.58ms
     99%    9.25ms
  4956442 requests in 30.10s, 1.04GB read
Requests/sec: 164671.37
Transfer/sec:     35.33MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.91ms  33.01ms   88.43%
    Req/Sec    32.90k     9.19k   63.23k    60.85%
  Latency Distribution
     50%  456.00us
     75%    1.02ms
     90%    3.55ms
     99%    9.52ms
  4916843 requests in 30.10s, 1.03GB read
Requests/sec: 163354.79
Transfer/sec:     35.05MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164337.46
Latency Avg: 1.18ms    Max: 36.08ms
   P90 (ms): 3.48, 3.58, 3.55
   P99 (ms): 9.15, 9.25, 9.52
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  30.91ms   88.80%
    Req/Sec    30.87k     8.54k   50.32k    61.46%
  Latency Distribution
     50%  523.00us
     75%    0.98ms
     90%    3.57ms
     99%    9.82ms
  4622633 requests in 30.10s, 0.97GB read
Requests/sec: 153577.53
Transfer/sec:     32.95MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.88ms  36.27ms   88.76%
    Req/Sec    30.96k     8.24k   53.91k    61.99%
  Latency Distribution
     50%  521.00us
     75%    0.98ms
     90%    3.46ms
     99%    9.40ms
  4635900 requests in 30.10s, 0.97GB read
Requests/sec: 154018.43
Transfer/sec:     33.05MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.98ms  34.05ms   89.08%
    Req/Sec    30.83k     8.33k   53.16k    59.67%
  Latency Distribution
     50%  489.00us
     75%    1.07ms
     90%    3.51ms
     99%    9.92ms
  4616603 requests in 30.10s, 0.97GB read
Requests/sec: 153377.33
Transfer/sec:     32.91MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153657.76
Latency Avg: 1.22ms    Max: 36.27ms
   P90 (ms): 3.57, 3.46, 3.51
   P99 (ms): 9.82, 9.4, 9.92
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.84ms  32.16ms   90.53%
    Req/Sec    26.56k     6.95k   44.97k    60.60%
  Latency Distribution
     50%  617.00us
     75%    1.17ms
     90%    2.86ms
     99%    9.45ms
  3977663 requests in 30.10s, 853.50MB read
Requests/sec: 132149.76
Transfer/sec:     28.36MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.82ms  41.27ms   90.57%
    Req/Sec    26.84k     6.78k   46.69k    61.12%
  Latency Distribution
     50%  619.00us
     75%    1.11ms
     90%    2.78ms
     99%    9.15ms
  4011063 requests in 30.10s, 860.67MB read
Requests/sec: 133260.19
Transfer/sec:     28.59MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.87ms  41.78ms   90.88%
    Req/Sec    26.48k     6.63k   47.17k    62.66%
  Latency Distribution
     50%  600.00us
     75%    1.21ms
     90%    2.80ms
     99%    9.33ms
  3964105 requests in 30.10s, 850.59MB read
Requests/sec: 131699.39
Transfer/sec:     28.26MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 132369.78
Latency Avg: 1.21ms    Max: 41.78ms
   P90 (ms): 2.86, 2.78, 2.8
   P99 (ms): 9.45, 9.15, 9.33
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  29.37ms   88.14%
    Req/Sec    32.97k     8.86k   64.29k    60.76%
  Latency Distribution
     50%  469.00us
     75%    0.99ms
     90%    3.62ms
     99%    9.37ms
  4924953 requests in 30.10s, 1.03GB read
Requests/sec: 163625.18
Transfer/sec:     35.11MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.94ms  30.30ms   88.32%
    Req/Sec    33.00k     9.05k   65.92k    60.85%
  Latency Distribution
     50%  466.00us
     75%    1.01ms
     90%    3.63ms
     99%    9.59ms
  4931802 requests in 30.10s, 1.03GB read
Requests/sec: 163851.15
Transfer/sec:     35.16MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    2.00ms  31.57ms   88.30%
    Req/Sec    32.83k     9.30k   69.42k    59.29%
  Latency Distribution
     50%  463.00us
     75%    1.03ms
     90%    3.71ms
     99%    9.88ms
  4902621 requests in 30.10s, 1.03GB read
Requests/sec: 162882.30
Transfer/sec:     34.95MB
### Combined result for Kong git:master:
RPS     Avg: 163452.88
Latency Avg: 1.21ms    Max: 31.57ms
   P90 (ms): 3.62, 3.63, 3.71
   P99 (ms): 9.37, 9.59, 9.88
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.93ms  43.24ms   88.60%
    Req/Sec    31.16k     8.27k   50.85k    60.00%
  Latency Distribution
     50%  512.00us
     75%    0.97ms
     90%    3.58ms
     99%    9.56ms
  4665627 requests in 30.10s, 0.98GB read
Requests/sec: 155006.18
Transfer/sec:     33.26MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  36.69ms   88.52%
    Req/Sec    31.14k     8.12k   50.97k    59.60%
  Latency Distribution
     50%  508.00us
     75%    0.98ms
     90%    3.55ms
     99%    9.46ms
  4662973 requests in 30.10s, 0.98GB read
Requests/sec: 154917.70
Transfer/sec:     33.24MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  37.69ms   88.98%
    Req/Sec    30.54k     8.06k   59.23k    62.06%
  Latency Distribution
     50%  498.00us
     75%    1.09ms
     90%    3.43ms
     99%    9.42ms
  4573176 requests in 30.10s, 0.96GB read
Requests/sec: 151934.46
Transfer/sec:     32.60MB
### Combined result for Kong git:master:
RPS     Avg: 153952.78
Latency Avg: 1.20ms    Max: 43.24ms
   P90 (ms): 3.58, 3.55, 3.43
   P99 (ms): 9.56, 9.46, 9.42
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.34ms    2.18ms  40.44ms   90.64%
    Req/Sec    26.44k     6.60k   43.02k    61.57%
  Latency Distribution
     50%  607.00us
     75%    1.20ms
     90%    3.30ms
     99%   11.20ms
  3955752 requests in 30.10s, 848.80MB read
Requests/sec: 131421.68
Transfer/sec:     28.20MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.85ms  38.04ms   90.70%
    Req/Sec    26.56k     6.66k   44.53k    61.13%
  Latency Distribution
     50%  611.00us
     75%    1.17ms
     90%    2.78ms
     99%    9.36ms
  3978548 requests in 30.10s, 853.69MB read
Requests/sec: 132179.31
Transfer/sec:     28.36MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.78ms  32.99ms   90.31%
    Req/Sec    26.36k     6.66k   49.17k    62.52%
  Latency Distribution
     50%  617.00us
     75%    1.19ms
     90%    2.90ms
     99%    8.87ms
  3938349 requests in 30.10s, 845.06MB read
Requests/sec: 130844.00
Transfer/sec:     28.08MB
### Combined result for Kong git:master:
RPS     Avg: 131481.66
Latency Avg: 1.26ms    Max: 40.44ms
   P90 (ms): 3.3, 2.78, 2.9
   P99 (ms): 11.2, 9.36, 8.87
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.11:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   564.12us    1.26ms  16.08ms   87.43%
    Req/Sec   167.87k    13.75k  213.49k    66.02%
  Latency Distribution
     50%   57.00us
     75%   97.00us
     90%    2.39ms
     99%    6.34ms
  25071750 requests in 30.10s, 3.27GB read
Requests/sec: 832953.65
Transfer/sec:    111.21MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.11:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   582.10us    1.27ms  16.10ms   87.27%
    Req/Sec   150.43k     7.47k  195.88k    73.30%
  Latency Distribution
     50%   64.00us
     75%  108.00us
     90%    2.45ms
     99%    6.41ms
  22481478 requests in 30.10s, 2.93GB read
Requests/sec: 746910.20
Transfer/sec:     99.72MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.11:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   576.76us    1.27ms  12.14ms   87.28%
    Req/Sec   151.30k     8.21k  196.70k    75.60%
  Latency Distribution
     50%   64.00us
     75%  107.00us
     90%    2.40ms
     99%    6.35ms
  22582176 requests in 30.03s, 2.94GB read
Requests/sec: 751885.23
Transfer/sec:    100.39MB
### Combined result for upstream directly:
RPS     Avg: 777249.69
Latency Avg: 0.57ms    Max: 16.10ms
   P90 (ms): 2.39, 2.45, 2.4
   P99 (ms): 6.34, 6.41, 6.35
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  29.37ms   88.01%
    Req/Sec    33.29k     8.76k   56.42k    60.79%
  Latency Distribution
     50%  468.00us
     75%    0.97ms
     90%    3.58ms
     99%    9.16ms
  4976292 requests in 30.10s, 1.04GB read
Requests/sec: 165328.17
Transfer/sec:     35.48MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.96ms  40.74ms   88.21%
    Req/Sec    32.85k     9.22k   62.35k    61.72%
  Latency Distribution
     50%  467.00us
     75%    1.01ms
     90%    3.69ms
     99%    9.62ms
  4909794 requests in 30.10s, 1.03GB read
Requests/sec: 163123.83
Transfer/sec:     35.00MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.87ms  28.24ms   87.81%
    Req/Sec    33.52k     8.98k   64.30k    57.32%
  Latency Distribution
     50%  475.00us
     75%    0.90ms
     90%    3.65ms
     99%    9.20ms
  5008838 requests in 30.10s, 1.05GB read
Requests/sec: 166409.96
Transfer/sec:     35.71MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164953.99
Latency Avg: 1.19ms    Max: 40.74ms
   P90 (ms): 3.58, 3.69, 3.65
   P99 (ms): 9.16, 9.62, 9.2
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.97ms  41.33ms   88.82%
    Req/Sec    31.15k     8.28k   48.81k    58.94%
  Latency Distribution
     50%  512.00us
     75%    0.97ms
     90%    3.56ms
     99%    9.82ms
  4663501 requests in 30.10s, 0.98GB read
Requests/sec: 154935.51
Transfer/sec:     33.25MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  30.21ms   88.61%
    Req/Sec    31.08k     8.06k   53.67k    60.47%
  Latency Distribution
     50%  505.00us
     75%    0.99ms
     90%    3.48ms
     99%    9.27ms
  4654979 requests in 30.10s, 0.98GB read
Requests/sec: 154652.20
Transfer/sec:     33.18MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.88ms  30.64ms   88.74%
    Req/Sec    31.06k     7.95k   50.38k    59.38%
  Latency Distribution
     50%  504.00us
     75%    0.99ms
     90%    3.46ms
     99%    9.41ms
  4648174 requests in 30.10s, 0.97GB read
Requests/sec: 154426.56
Transfer/sec:     33.14MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154671.42
Latency Avg: 1.20ms    Max: 41.33ms
   P90 (ms): 3.56, 3.48, 3.46
   P99 (ms): 9.82, 9.27, 9.41
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.87ms  35.32ms   90.09%
    Req/Sec    26.14k     6.57k   43.78k    63.19%
  Latency Distribution
     50%  602.00us
     75%    1.25ms
     90%    3.11ms
     99%    9.36ms
  3914885 requests in 30.10s, 840.03MB read
Requests/sec: 130064.09
Transfer/sec:     27.91MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.86ms  36.62ms   90.54%
    Req/Sec    26.54k     6.64k   42.73k    60.20%
  Latency Distribution
     50%  631.00us
     75%    1.12ms
     90%    2.84ms
     99%    9.45ms
  3973656 requests in 30.10s, 852.64MB read
Requests/sec: 132016.92
Transfer/sec:     28.33MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.87ms  36.17ms   90.74%
    Req/Sec    26.22k     6.70k   43.29k    62.39%
  Latency Distribution
     50%  610.00us
     75%    1.21ms
     90%    2.82ms
     99%    9.45ms
  3926811 requests in 30.10s, 842.59MB read
Requests/sec: 130460.31
Transfer/sec:     27.99MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 130847.11
Latency Avg: 1.24ms    Max: 36.62ms
   P90 (ms): 3.11, 2.84, 2.82
   P99 (ms): 9.36, 9.45, 9.45
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  30.10ms   88.35%
    Req/Sec    32.83k     8.51k   77.88k    60.36%
  Latency Distribution
     50%  471.00us
     75%    1.02ms
     90%    3.56ms
     99%    9.39ms
  4903239 requests in 30.10s, 1.03GB read
Requests/sec: 162904.82
Transfer/sec:     34.96MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.99ms  55.84ms   88.64%
    Req/Sec    32.85k     8.54k   52.94k    58.78%
  Latency Distribution
     50%  470.00us
     75%    1.00ms
     90%    3.58ms
     99%    9.62ms
  4916322 requests in 30.10s, 1.03GB read
Requests/sec: 163335.27
Transfer/sec:     35.05MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.98ms  32.56ms   88.37%
    Req/Sec    32.97k     9.04k   61.30k    59.79%
  Latency Distribution
     50%  470.00us
     75%    1.00ms
     90%    3.66ms
     99%    9.80ms
  4927776 requests in 30.10s, 1.03GB read
Requests/sec: 163715.91
Transfer/sec:     35.13MB
### Combined result for Kong git:master:
RPS     Avg: 163318.67
Latency Avg: 1.21ms    Max: 55.84ms
   P90 (ms): 3.56, 3.58, 3.66
   P99 (ms): 9.39, 9.62, 9.8
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  41.26ms   88.78%
    Req/Sec    30.97k     8.65k   49.01k    60.53%
  Latency Distribution
     50%  496.00us
     75%    1.03ms
     90%    3.58ms
     99%    9.78ms
  4636362 requests in 30.10s, 0.97GB read
Requests/sec: 154033.64
Transfer/sec:     33.05MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  33.72ms   88.68%
    Req/Sec    31.00k     8.24k   51.93k    60.27%
  Latency Distribution
     50%  505.00us
     75%    1.01ms
     90%    3.53ms
     99%    9.52ms
  4642403 requests in 30.10s, 0.97GB read
Requests/sec: 154234.72
Transfer/sec:     33.09MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.93ms  33.69ms   89.00%
    Req/Sec    30.80k     8.20k   56.35k    60.85%
  Latency Distribution
     50%  503.00us
     75%    1.05ms
     90%    3.47ms
     99%    9.64ms
  4602471 requests in 30.10s, 0.96GB read
Requests/sec: 152908.93
Transfer/sec:     32.81MB
### Combined result for Kong git:master:
RPS     Avg: 153725.76
Latency Avg: 1.21ms    Max: 41.26ms
   P90 (ms): 3.58, 3.53, 3.47
   P99 (ms): 9.78, 9.52, 9.64
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.89ms  32.72ms   89.94%
    Req/Sec    26.30k     6.61k   43.30k    62.79%
  Latency Distribution
     50%  597.00us
     75%    1.24ms
     90%    3.17ms
     99%    9.47ms
  3938421 requests in 30.10s, 845.08MB read
Requests/sec: 130846.04
Transfer/sec:     28.08MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.90ms  41.50ms   90.58%
    Req/Sec    26.50k     6.67k   44.18k    61.26%
  Latency Distribution
     50%  640.00us
     75%    1.12ms
     90%    2.87ms
     99%    9.50ms
  3968553 requests in 30.10s, 851.54MB read
Requests/sec: 131847.45
Transfer/sec:     28.29MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.13:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.88ms  33.76ms   90.73%
    Req/Sec    26.51k     6.66k   44.39k    62.99%
  Latency Distribution
     50%  608.00us
     75%    1.17ms
     90%    2.79ms
     99%    9.52ms
  3969471 requests in 30.10s, 851.74MB read
Requests/sec: 131877.56
Transfer/sec:     28.30MB
### Combined result for Kong git:master:
RPS     Avg: 131523.68
Latency Avg: 1.24ms    Max: 41.50ms
   P90 (ms): 3.17, 2.87, 2.79
   P99 (ms): 9.47, 9.5, 9.52
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

and tonumber(kong.configuration.nginx_http_lua_regex_cache_max_entries) or 1024
end

if worker_id() == 0 and regex_uris[0] > lua_regex_cache_max_entries then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also be checking for regex_uris[0] * 2 > lua_regex_cache_max_entries here, if user sets lua_regex_cache_max_entries to be exactly regex_uris[0] we can still expect issues regarding regex cache trashing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done.

@mayocream mayocream force-pushed the fix/lua_regex_cache_max_entries branch from 58ccaa3 to 546e4fd Compare October 31, 2022 06:11
@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.85ms  31.74ms   88.76%
    Req/Sec    32.55k     8.36k   55.79k    63.72%
  Latency Distribution
     50%  457.00us
     75%    1.08ms
     90%    3.37ms
     99%    9.20ms
  4864207 requests in 30.10s, 1.02GB read
Requests/sec: 161606.25
Transfer/sec:     34.68MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  34.20ms   88.40%
    Req/Sec    32.81k     9.09k   56.16k    58.26%
  Latency Distribution
     50%  463.00us
     75%    1.03ms
     90%    3.57ms
     99%    9.49ms
  4904101 requests in 30.10s, 1.03GB read
Requests/sec: 162930.73
Transfer/sec:     34.96MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  38.19ms   87.96%
    Req/Sec    32.88k     8.86k   59.79k    58.85%
  Latency Distribution
     50%  482.00us
     75%    0.95ms
     90%    3.61ms
     99%    9.14ms
  4913081 requests in 30.10s, 1.03GB read
Requests/sec: 163226.95
Transfer/sec:     35.02MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 162587.98
Latency Avg: 1.19ms    Max: 38.19ms
   P90 (ms): 3.37, 3.57, 3.61
   P99 (ms): 9.2, 9.49, 9.14
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  33.44ms   88.56%
    Req/Sec    30.99k     8.30k   50.74k    59.20%
  Latency Distribution
     50%  506.00us
     75%    1.00ms
     90%    3.59ms
     99%    9.58ms
  4639760 requests in 30.10s, 0.97GB read
Requests/sec: 154145.31
Transfer/sec:     33.08MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.95ms  40.54ms   88.78%
    Req/Sec    30.78k     8.47k   54.83k    59.47%
  Latency Distribution
     50%  510.00us
     75%    1.01ms
     90%    3.56ms
     99%    9.73ms
  4607796 requests in 30.10s, 0.97GB read
Requests/sec: 153084.11
Transfer/sec:     32.85MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.90ms  30.97ms   88.59%
    Req/Sec    30.93k     8.49k   51.34k    59.80%
  Latency Distribution
     50%  507.00us
     75%    1.00ms
     90%    3.55ms
     99%    9.44ms
  4632813 requests in 30.10s, 0.97GB read
Requests/sec: 153914.80
Transfer/sec:     33.03MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153714.74
Latency Avg: 1.21ms    Max: 40.54ms
   P90 (ms): 3.59, 3.56, 3.55
   P99 (ms): 9.58, 9.73, 9.44
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.79ms  41.29ms   90.69%
    Req/Sec    26.49k     6.59k   46.26k    62.92%
  Latency Distribution
     50%  610.00us
     75%    1.18ms
     90%    2.74ms
     99%    8.84ms
  3966811 requests in 30.10s, 851.17MB read
Requests/sec: 131788.00
Transfer/sec:     28.28MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.28ms    1.97ms  32.67ms   90.38%
    Req/Sec    26.40k     6.86k   46.34k    61.33%
  Latency Distribution
     50%  600.00us
     75%    1.21ms
     90%    3.11ms
     99%   10.09ms
  3953297 requests in 30.10s, 848.27MB read
Requests/sec: 131339.83
Transfer/sec:     28.18MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.87ms  44.13ms   90.95%
    Req/Sec    26.27k     6.72k   45.21k    64.39%
  Latency Distribution
     50%  612.00us
     75%    1.22ms
     90%    2.73ms
     99%    9.49ms
  3933488 requests in 30.10s, 844.02MB read
Requests/sec: 130680.66
Transfer/sec:     28.04MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131269.50
Latency Avg: 1.24ms    Max: 44.13ms
   P90 (ms): 2.74, 3.11, 2.73
   P99 (ms): 8.84, 10.09, 9.49
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.95ms  29.67ms   88.32%
    Req/Sec    32.91k     9.11k   54.39k    58.99%
  Latency Distribution
     50%  467.00us
     75%    1.02ms
     90%    3.64ms
     99%    9.68ms
  4918913 requests in 30.10s, 1.03GB read
Requests/sec: 163423.55
Transfer/sec:     35.07MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  39.11ms   88.29%
    Req/Sec    32.91k     9.25k   71.67k    61.23%
  Latency Distribution
     50%  469.00us
     75%    1.01ms
     90%    3.60ms
     99%    9.48ms
  4914976 requests in 30.10s, 1.03GB read
Requests/sec: 163292.84
Transfer/sec:     35.04MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.91ms  38.17ms   88.23%
    Req/Sec    32.93k     8.92k   58.73k    61.85%
  Latency Distribution
     50%  464.00us
     75%    1.01ms
     90%    3.61ms
     99%    9.40ms
  4920967 requests in 30.10s, 1.03GB read
Requests/sec: 163492.29
Transfer/sec:     35.08MB
### Combined result for Kong git:master:
RPS     Avg: 163402.89
Latency Avg: 1.21ms    Max: 39.11ms
   P90 (ms): 3.64, 3.6, 3.61
   P99 (ms): 9.68, 9.48, 9.4
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.91ms  34.54ms   88.46%
    Req/Sec    30.90k     8.27k   50.39k    58.54%
  Latency Distribution
     50%  525.00us
     75%    0.96ms
     90%    3.60ms
     99%    9.42ms
  4625512 requests in 30.10s, 0.97GB read
Requests/sec: 153672.09
Transfer/sec:     32.97MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.94ms  36.44ms   88.60%
    Req/Sec    31.00k     8.36k   57.23k    58.34%
  Latency Distribution
     50%  507.00us
     75%    1.00ms
     90%    3.61ms
     99%    9.69ms
  4643003 requests in 30.10s, 0.97GB read
Requests/sec: 154252.97
Transfer/sec:     33.10MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.91ms  43.47ms   88.54%
    Req/Sec    30.97k     8.30k   55.40k    57.87%
  Latency Distribution
     50%  525.00us
     75%    0.95ms
     90%    3.58ms
     99%    9.42ms
  4637904 requests in 30.10s, 0.97GB read
Requests/sec: 154083.76
Transfer/sec:     33.06MB
### Combined result for Kong git:master:
RPS     Avg: 154002.94
Latency Avg: 1.21ms    Max: 43.47ms
   P90 (ms): 3.6, 3.61, 3.58
   P99 (ms): 9.42, 9.69, 9.42
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.87ms  33.76ms   90.54%
    Req/Sec    26.57k     6.78k   42.96k    60.33%
  Latency Distribution
     50%  617.00us
     75%    1.13ms
     90%    2.87ms
     99%    9.51ms
  3978398 requests in 30.10s, 853.66MB read
Requests/sec: 132172.52
Transfer/sec:     28.36MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.85ms  36.85ms   90.56%
    Req/Sec    26.55k     6.85k   47.33k    61.93%
  Latency Distribution
     50%  619.00us
     75%    1.14ms
     90%    2.83ms
     99%    9.39ms
  3975543 requests in 30.10s, 853.04MB read
Requests/sec: 132078.35
Transfer/sec:     28.34MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.80ms  30.71ms   90.38%
    Req/Sec    26.62k     6.68k   45.21k    60.93%
  Latency Distribution
     50%  624.00us
     75%    1.13ms
     90%    2.85ms
     99%    9.06ms
  3985915 requests in 30.10s, 855.27MB read
Requests/sec: 132423.02
Transfer/sec:     28.41MB
### Combined result for Kong git:master:
RPS     Avg: 132224.63
Latency Avg: 1.22ms    Max: 36.85ms
   P90 (ms): 2.87, 2.83, 2.85
   P99 (ms): 9.51, 9.39, 9.06
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   567.78us    1.26ms  24.42ms   87.35%
    Req/Sec   168.45k    12.75k  217.20k    69.75%
  Latency Distribution
     50%   57.00us
     75%   97.00us
     90%    2.40ms
     99%    6.32ms
  25158006 requests in 30.10s, 3.28GB read
Requests/sec: 835837.26
Transfer/sec:    111.60MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   579.41us    1.27ms  12.11ms   87.22%
    Req/Sec   152.05k     7.04k  202.47k    72.68%
  Latency Distribution
     50%   63.00us
     75%  106.00us
     90%    2.44ms
     99%    6.34ms
  22708432 requests in 30.10s, 2.96GB read
Requests/sec: 754440.95
Transfer/sec:    100.73MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.3:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   572.71us    1.26ms  12.14ms   87.29%
    Req/Sec   152.50k     6.95k  191.52k    69.93%
  Latency Distribution
     50%   63.00us
     75%  106.00us
     90%    2.38ms
     99%    6.34ms
  22760341 requests in 30.07s, 2.97GB read
Requests/sec: 757028.19
Transfer/sec:    101.07MB
### Combined result for upstream directly:
RPS     Avg: 782435.47
Latency Avg: 0.57ms    Max: 24.42ms
   P90 (ms): 2.4, 2.44, 2.38
   P99 (ms): 6.32, 6.34, 6.34
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  31.45ms   87.98%
    Req/Sec    33.07k     8.64k   57.90k    59.45%
  Latency Distribution
     50%  470.00us
     75%    0.96ms
     90%    3.63ms
     99%    9.21ms
  4942813 requests in 30.10s, 1.04GB read
Requests/sec: 164214.65
Transfer/sec:     35.24MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.93ms  35.46ms   88.26%
    Req/Sec    32.26k     8.92k   53.48k    60.45%
  Latency Distribution
     50%  487.00us
     75%    1.01ms
     90%    3.64ms
     99%    9.55ms
  4820566 requests in 30.10s, 1.01GB read
Requests/sec: 160156.37
Transfer/sec:     34.37MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.97ms  36.37ms   88.42%
    Req/Sec    32.51k     9.09k   53.64k    59.72%
  Latency Distribution
     50%  475.00us
     75%    1.01ms
     90%    3.64ms
     99%    9.74ms
  4858374 requests in 30.10s, 1.02GB read
Requests/sec: 161410.34
Transfer/sec:     34.63MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 161927.12
Latency Avg: 1.21ms    Max: 36.37ms
   P90 (ms): 3.63, 3.64, 3.64
   P99 (ms): 9.21, 9.55, 9.74
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  31.01ms   88.58%
    Req/Sec    31.10k     8.23k   56.93k    59.47%
  Latency Distribution
     50%  511.00us
     75%    0.99ms
     90%    3.58ms
     99%    9.55ms
  4657405 requests in 30.10s, 0.98GB read
Requests/sec: 154731.73
Transfer/sec:     33.20MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.92ms  30.77ms   88.44%
    Req/Sec    30.84k     8.54k   56.21k    59.20%
  Latency Distribution
     50%  516.00us
     75%    0.99ms
     90%    3.64ms
     99%    9.49ms
  4617538 requests in 30.10s, 0.97GB read
Requests/sec: 153407.18
Transfer/sec:     32.92MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  35.31ms   88.73%
    Req/Sec    30.78k     8.64k   53.71k    60.80%
  Latency Distribution
     50%  509.00us
     75%    1.03ms
     90%    3.69ms
     99%   10.12ms
  4607814 requests in 30.10s, 0.97GB read
Requests/sec: 153084.19
Transfer/sec:     32.85MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153741.03
Latency Avg: 1.23ms    Max: 35.31ms
   P90 (ms): 3.58, 3.64, 3.69
   P99 (ms): 9.55, 9.49, 10.12
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.86ms  31.47ms   90.49%
    Req/Sec    26.43k     6.75k   47.20k    60.47%
  Latency Distribution
     50%  630.00us
     75%    1.13ms
     90%    2.87ms
     99%    9.26ms
  3958318 requests in 30.10s, 849.35MB read
Requests/sec: 131505.97
Transfer/sec:     28.22MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.08ms  42.94ms   90.80%
    Req/Sec    26.07k     6.83k   45.82k    61.79%
  Latency Distribution
     50%  622.00us
     75%    1.23ms
     90%    3.08ms
     99%   10.65ms
  3903481 requests in 30.10s, 837.58MB read
Requests/sec: 129684.02
Transfer/sec:     27.83MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.82ms  37.45ms   90.46%
    Req/Sec    26.52k     6.62k   45.46k    60.19%
  Latency Distribution
     50%  639.00us
     75%    1.12ms
     90%    2.84ms
     99%    9.01ms
  3962829 requests in 30.10s, 850.32MB read
Requests/sec: 131659.32
Transfer/sec:     28.25MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 130949.77
Latency Avg: 1.25ms    Max: 42.94ms
   P90 (ms): 2.87, 3.08, 2.84
   P99 (ms): 9.26, 10.65, 9.01
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.90ms  30.59ms   87.93%
    Req/Sec    32.96k     9.10k   55.32k    60.80%
  Latency Distribution
     50%  485.00us
     75%    0.94ms
     90%    3.66ms
     99%    9.38ms
  4935170 requests in 30.10s, 1.03GB read
Requests/sec: 163960.29
Transfer/sec:     35.18MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.05ms  38.66ms   88.46%
    Req/Sec    32.71k     9.26k   73.68k    62.29%
  Latency Distribution
     50%  472.00us
     75%    1.01ms
     90%    3.75ms
     99%   10.08ms
  4884615 requests in 30.10s, 1.02GB read
Requests/sec: 162281.98
Transfer/sec:     34.82MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.32ms    2.22ms  33.63ms   88.87%
    Req/Sec    32.45k     9.70k   60.06k    61.12%
  Latency Distribution
     50%  471.00us
     75%    1.08ms
     90%    3.88ms
     99%   11.02ms
  4848860 requests in 30.10s, 1.02GB read
Requests/sec: 161094.02
Transfer/sec:     34.57MB
### Combined result for Kong git:master:
RPS     Avg: 162445.43
Latency Avg: 1.26ms    Max: 38.66ms
   P90 (ms): 3.66, 3.75, 3.88
   P99 (ms): 9.38, 10.08, 11.02
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.11ms  39.68ms   89.00%
    Req/Sec    30.94k     8.48k   47.85k    56.08%
  Latency Distribution
     50%  502.00us
     75%    1.02ms
     90%    3.70ms
     99%   10.53ms
  4632028 requests in 30.10s, 0.97GB read
Requests/sec: 153888.53
Transfer/sec:     33.02MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  39.31ms   88.56%
    Req/Sec    30.88k     8.43k   54.90k    58.41%
  Latency Distribution
     50%  517.00us
     75%    0.99ms
     90%    3.59ms
     99%    9.51ms
  4623856 requests in 30.10s, 0.97GB read
Requests/sec: 153617.16
Transfer/sec:     32.96MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.99ms  43.81ms   88.73%
    Req/Sec    31.02k     8.36k   52.67k    60.73%
  Latency Distribution
     50%  507.00us
     75%    1.00ms
     90%    3.62ms
     99%    9.84ms
  4644263 requests in 30.10s, 0.97GB read
Requests/sec: 154295.32
Transfer/sec:     33.11MB
### Combined result for Kong git:master:
RPS     Avg: 153933.67
Latency Avg: 1.24ms    Max: 43.81ms
   P90 (ms): 3.7, 3.59, 3.62
   P99 (ms): 10.53, 9.51, 9.84
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.91ms  42.38ms   90.66%
    Req/Sec    26.44k     6.83k   44.41k    60.86%
  Latency Distribution
     50%  636.00us
     75%    1.14ms
     90%    2.87ms
     99%    9.60ms
  3958785 requests in 30.10s, 849.45MB read
Requests/sec: 131521.36
Transfer/sec:     28.22MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.89ms  36.36ms   90.60%
    Req/Sec    26.35k     6.89k   48.31k    60.53%
  Latency Distribution
     50%  617.00us
     75%    1.17ms
     90%    2.88ms
     99%    9.51ms
  3946134 requests in 30.10s, 846.73MB read
Requests/sec: 131101.48
Transfer/sec:     28.13MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.5:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.87ms  32.73ms   90.76%
    Req/Sec    26.17k     6.53k   45.24k    60.33%
  Latency Distribution
     50%  611.00us
     75%    1.22ms
     90%    2.86ms
     99%    9.43ms
  3919290 requests in 30.10s, 840.97MB read
Requests/sec: 130209.75
Transfer/sec:     27.94MB
### Combined result for Kong git:master:
RPS     Avg: 130944.20
Latency Avg: 1.24ms    Max: 42.38ms
   P90 (ms): 2.87, 2.88, 2.86
   P99 (ms): 9.6, 9.51, 9.43
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  31.41ms   88.12%
    Req/Sec    33.07k     8.62k   57.32k    62.32%
  Latency Distribution
     50%  462.00us
     75%    1.02ms
     90%    3.72ms
     99%    9.76ms
  4942498 requests in 30.10s, 1.04GB read
Requests/sec: 164206.09
Transfer/sec:     35.23MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.14ms  35.66ms   88.47%
    Req/Sec    32.70k     9.10k   59.67k    60.92%
  Latency Distribution
     50%  463.00us
     75%    1.06ms
     90%    3.88ms
     99%   10.64ms
  4886105 requests in 30.10s, 1.02GB read
Requests/sec: 162334.65
Transfer/sec:     34.83MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.06ms  39.50ms   87.93%
    Req/Sec    33.27k     8.99k   56.83k    59.32%
  Latency Distribution
     50%  467.00us
     75%    0.98ms
     90%    3.89ms
     99%   10.09ms
  4972046 requests in 30.10s, 1.04GB read
Requests/sec: 165187.41
Transfer/sec:     35.44MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163909.38
Latency Avg: 1.26ms    Max: 39.50ms
   P90 (ms): 3.72, 3.88, 3.89
   P99 (ms): 9.76, 10.64, 10.09
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.91ms  33.47ms   88.49%
    Req/Sec    30.75k     7.85k   53.92k    60.97%
  Latency Distribution
     50%  517.00us
     75%    1.02ms
     90%    3.61ms
     99%    9.46ms
  4601290 requests in 30.10s, 0.96GB read
Requests/sec: 152870.34
Transfer/sec:     32.80MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.01ms  36.54ms   88.64%
    Req/Sec    30.76k     7.91k   55.68k    59.27%
  Latency Distribution
     50%  509.00us
     75%    1.03ms
     90%    3.71ms
     99%   10.09ms
  4605688 requests in 30.10s, 0.97GB read
Requests/sec: 153016.66
Transfer/sec:     32.83MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  49.63ms   88.58%
    Req/Sec    30.90k     8.18k   59.30k    59.44%
  Latency Distribution
     50%  499.00us
     75%    1.03ms
     90%    3.75ms
     99%   10.05ms
  4623853 requests in 30.10s, 0.97GB read
Requests/sec: 153620.42
Transfer/sec:     32.96MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153169.14
Latency Avg: 1.24ms    Max: 49.63ms
   P90 (ms): 3.61, 3.71, 3.75
   P99 (ms): 9.46, 10.09, 10.05
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.90ms  41.08ms   90.32%
    Req/Sec    26.45k     6.27k   43.75k    60.25%
  Latency Distribution
     50%  607.00us
     75%    1.20ms
     90%    3.03ms
     99%    9.39ms
  3951818 requests in 30.10s, 847.95MB read
Requests/sec: 131291.62
Transfer/sec:     28.17MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.95ms  38.22ms   90.37%
    Req/Sec    26.64k     6.39k   41.37k    61.50%
  Latency Distribution
     50%  623.00us
     75%    1.13ms
     90%    3.04ms
     99%    9.76ms
  3987337 requests in 30.10s, 855.58MB read
Requests/sec: 132472.98
Transfer/sec:     28.43MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.33ms    2.13ms  42.09ms   90.76%
    Req/Sec    26.16k     6.67k   52.58k    64.98%
  Latency Distribution
     50%  601.00us
     75%    1.26ms
     90%    3.18ms
     99%   10.77ms
  3916373 requests in 30.10s, 840.35MB read
Requests/sec: 130114.88
Transfer/sec:     27.92MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131293.16
Latency Avg: 1.27ms    Max: 42.09ms
   P90 (ms): 3.03, 3.04, 3.18
   P99 (ms): 9.39, 9.76, 10.77
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.95ms  36.19ms   87.96%
    Req/Sec    33.13k     8.48k   55.32k    61.45%
  Latency Distribution
     50%  470.00us
     75%    0.99ms
     90%    3.75ms
     99%    9.56ms
  4951024 requests in 30.10s, 1.04GB read
Requests/sec: 164491.25
Transfer/sec:     35.30MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.94ms  33.19ms   87.94%
    Req/Sec    33.01k     8.59k   57.95k    62.05%
  Latency Distribution
     50%  463.00us
     75%    1.01ms
     90%    3.74ms
     99%    9.57ms
  4932730 requests in 30.10s, 1.03GB read
Requests/sec: 163879.81
Transfer/sec:     35.16MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.96ms  33.69ms   87.86%
    Req/Sec    33.16k     8.57k   80.39k    61.16%
  Latency Distribution
     50%  470.00us
     75%    0.99ms
     90%    3.79ms
     99%    9.65ms
  4952461 requests in 30.10s, 1.04GB read
Requests/sec: 164538.55
Transfer/sec:     35.31MB
### Combined result for Kong git:master:
RPS     Avg: 164303.20
Latency Avg: 1.22ms    Max: 36.19ms
   P90 (ms): 3.75, 3.74, 3.79
   P99 (ms): 9.56, 9.57, 9.65
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.02ms  32.37ms   88.59%
    Req/Sec    30.75k     8.14k   52.65k    61.46%
  Latency Distribution
     50%  495.00us
     75%    1.07ms
     90%    3.74ms
     99%   10.11ms
  4604650 requests in 30.10s, 0.96GB read
Requests/sec: 152981.80
Transfer/sec:     32.83MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.00ms  37.34ms   88.39%
    Req/Sec    30.94k     8.11k   55.74k    60.07%
  Latency Distribution
     50%  520.00us
     75%    0.98ms
     90%    3.76ms
     99%    9.96ms
  4632533 requests in 30.10s, 0.97GB read
Requests/sec: 153908.52
Transfer/sec:     33.02MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.94ms  32.98ms   88.54%
    Req/Sec    30.98k     7.72k   54.82k    62.77%
  Latency Distribution
     50%  484.00us
     75%    1.08ms
     90%    3.64ms
     99%    9.66ms
  4635798 requests in 30.10s, 0.97GB read
Requests/sec: 154017.15
Transfer/sec:     33.05MB
### Combined result for Kong git:master:
RPS     Avg: 153635.82
Latency Avg: 1.24ms    Max: 37.34ms
   P90 (ms): 3.74, 3.76, 3.64
   P99 (ms): 10.11, 9.96, 9.66
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    1.91ms  42.90ms   90.42%
    Req/Sec    26.62k     6.47k   44.25k    62.52%
  Latency Distribution
     50%  596.00us
     75%    1.19ms
     90%    2.98ms
     99%    9.57ms
  3986551 requests in 30.10s, 855.41MB read
Requests/sec: 132446.56
Transfer/sec:     28.42MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.99ms  39.15ms   90.65%
    Req/Sec    26.46k     6.24k   42.88k    60.80%
  Latency Distribution
     50%  609.00us
     75%    1.18ms
     90%    2.98ms
     99%   10.07ms
  3962529 requests in 30.10s, 850.25MB read
Requests/sec: 131648.40
Transfer/sec:     28.25MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.98ms  35.24ms   90.42%
    Req/Sec    26.65k     6.55k   46.04k    61.40%
  Latency Distribution
     50%  634.00us
     75%    1.11ms
     90%    3.06ms
     99%   10.20ms
  3990223 requests in 30.10s, 856.20MB read
Requests/sec: 132565.23
Transfer/sec:     28.44MB
### Combined result for Kong git:master:
RPS     Avg: 132220.06
Latency Avg: 1.26ms    Max: 42.90ms
   P90 (ms): 2.98, 2.98, 3.06
   P99 (ms): 9.57, 10.07, 10.2
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.7:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   578.48us    1.28ms  24.37ms   87.12%
    Req/Sec   165.26k    13.48k  225.23k    66.29%
  Latency Distribution
     50%   57.00us
     75%   99.00us
     90%    2.45ms
     99%    6.39ms
  24677981 requests in 30.10s, 3.22GB read
Requests/sec: 819879.47
Transfer/sec:    109.47MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.7:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   575.82us    1.26ms  16.08ms   87.34%
    Req/Sec   149.93k     6.91k  179.54k    70.71%
  Latency Distribution
     50%   64.00us
     75%  108.00us
     90%    2.42ms
     99%    6.36ms
  22406675 requests in 30.10s, 2.92GB read
Requests/sec: 744420.84
Transfer/sec:     99.39MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.7:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   577.43us    1.27ms  15.98ms   87.33%
    Req/Sec   150.65k     7.27k  187.81k    73.82%
  Latency Distribution
     50%   64.00us
     75%  108.00us
     90%    2.43ms
     99%    6.36ms
  22496584 requests in 30.10s, 2.93GB read
Requests/sec: 747410.78
Transfer/sec:     99.79MB
### Combined result for upstream directly:
RPS     Avg: 770570.36
Latency Avg: 0.58ms    Max: 24.37ms
   P90 (ms): 2.45, 2.42, 2.43
   P99 (ms): 6.39, 6.36, 6.36
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    2.00ms  34.67ms   87.99%
    Req/Sec    32.99k     8.62k   53.02k    58.19%
  Latency Distribution
     50%  467.00us
     75%    1.01ms
     90%    3.82ms
     99%    9.85ms
  4929450 requests in 30.10s, 1.03GB read
Requests/sec: 163772.93
Transfer/sec:     35.14MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    2.01ms  34.43ms   87.92%
    Req/Sec    32.97k     8.78k   66.57k    61.32%
  Latency Distribution
     50%  471.00us
     75%    0.99ms
     90%    3.83ms
     99%    9.87ms
  4927504 requests in 30.10s, 1.03GB read
Requests/sec: 163708.68
Transfer/sec:     35.13MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.98ms  38.26ms   88.06%
    Req/Sec    32.79k     8.61k   62.79k    58.46%
  Latency Distribution
     50%  476.00us
     75%    1.00ms
     90%    3.77ms
     99%    9.69ms
  4900102 requests in 30.10s, 1.03GB read
Requests/sec: 162796.86
Transfer/sec:     34.93MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163426.16
Latency Avg: 1.24ms    Max: 38.26ms
   P90 (ms): 3.82, 3.83, 3.77
   P99 (ms): 9.85, 9.87, 9.69
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.31ms    2.19ms  48.69ms   88.80%
    Req/Sec    31.06k     8.63k   53.30k    57.98%
  Latency Distribution
     50%  493.00us
     75%    1.06ms
     90%    3.88ms
     99%   10.76ms
  4648346 requests in 30.10s, 0.97GB read
Requests/sec: 154434.15
Transfer/sec:     33.14MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    2.04ms  36.93ms   88.71%
    Req/Sec    30.75k     8.15k   52.02k    60.20%
  Latency Distribution
     50%  490.00us
     75%    1.09ms
     90%    3.72ms
     99%   10.19ms
  4605054 requests in 30.10s, 0.96GB read
Requests/sec: 152995.27
Transfer/sec:     32.83MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.99ms  38.48ms   88.46%
    Req/Sec    30.84k     7.99k   52.79k    61.00%
  Latency Distribution
     50%  515.00us
     75%    1.01ms
     90%    3.71ms
     99%    9.91ms
  4618016 requests in 30.10s, 0.97GB read
Requests/sec: 153426.42
Transfer/sec:     32.92MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153618.61
Latency Avg: 1.27ms    Max: 48.69ms
   P90 (ms): 3.88, 3.72, 3.71
   P99 (ms): 10.76, 10.19, 9.91
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.92ms  44.67ms   90.66%
    Req/Sec    26.13k     6.24k   43.42k    62.23%
  Latency Distribution
     50%  615.00us
     75%    1.22ms
     90%    2.96ms
     99%    9.58ms
  3909774 requests in 30.10s, 838.93MB read
Requests/sec: 129896.17
Transfer/sec:     27.87MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.06ms  36.97ms   90.61%
    Req/Sec    26.14k     6.61k   44.14k    61.93%
  Latency Distribution
     50%  613.00us
     75%    1.22ms
     90%    3.11ms
     99%   10.61ms
  3913585 requests in 30.10s, 839.75MB read
Requests/sec: 130022.45
Transfer/sec:     27.90MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.05ms  54.64ms   90.70%
    Req/Sec    26.39k     6.32k   43.63k    62.17%
  Latency Distribution
     50%  619.00us
     75%    1.17ms
     90%    3.01ms
     99%   10.19ms
  3950269 requests in 30.10s, 847.62MB read
Requests/sec: 131241.42
Transfer/sec:     28.16MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 130386.68
Latency Avg: 1.28ms    Max: 54.64ms
   P90 (ms): 2.96, 3.11, 3.01
   P99 (ms): 9.58, 10.61, 10.19
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.18ms  39.79ms   88.71%
    Req/Sec    32.64k     8.76k   52.74k    59.12%
  Latency Distribution
     50%  457.00us
     75%    1.11ms
     90%    3.87ms
     99%   10.81ms
  4877929 requests in 30.10s, 1.02GB read
Requests/sec: 162058.62
Transfer/sec:     34.77MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.29ms    2.16ms  35.67ms   88.44%
    Req/Sec    32.74k     8.85k   58.00k    58.66%
  Latency Distribution
     50%  469.00us
     75%    1.06ms
     90%    3.91ms
     99%   10.62ms
  4892670 requests in 30.10s, 1.03GB read
Requests/sec: 162553.75
Transfer/sec:     34.88MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.9:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.03ms  40.98ms   87.91%
    Req/Sec    32.75k     8.71k   55.68k    62.38%
  Latency Distribution
     50%  469.00us
     75%    1.01ms
     90%    3.89ms
     99%    9.99ms
  4893198 requests in 30.10s, 1.03GB read
Requests/sec: 162568.33
Transfer/sec:     34.88MB
### Combined result for Kong git:master:
RPS     Avg: 162393.57
Latency Avg: 1.28ms    Max: 40.98ms
   P90 (ms): 3.87, 3.91, 3.89
   P99 (ms): 10.81, 10.62, 9.99
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.06ms  33.35ms   89.06%
    Req/Sec    30.57k     7.73k   49.35k    61.79%
  Latency Distribution
     50%  484.00us
     75%    1.15ms
     90%    3.64ms
     99%   10.34ms
  4577666 requests in 30.10s, 0.96GB read
Requests/sec: 152085.30
Transfer/sec:     32.63MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.25ms    2.00ms  35.09ms   88.42%
    Req/Sec    30.72k     8.31k   55.99k    60.31%
  Latency Distribution
     50%  516.00us
     75%    1.02ms
     90%    3.74ms
     99%    9.91ms
  4597827 requests in 30.10s, 0.96GB read
Requests/sec: 152755.36
Transfer/sec:     32.78MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.13ms  33.71ms   88.63%
    Req/Sec    30.78k     8.37k   57.69k    59.67%
  Latency Distribution
     50%  510.00us
     75%    1.04ms
     90%    3.87ms
     99%   10.67ms
  4609532 requests in 30.10s, 0.97GB read
Requests/sec: 153144.11
Transfer/sec:     32.86MB
### Combined result for Kong git:master:
RPS     Avg: 152661.59
Latency Avg: 1.27ms    Max: 35.09ms
   P90 (ms): 3.64, 3.74, 3.87
   P99 (ms): 10.34, 9.91, 10.67
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.88ms  35.11ms   90.35%
    Req/Sec    26.51k     6.26k   41.90k    61.53%
  Latency Distribution
     50%  636.00us
     75%    1.11ms
     90%    2.97ms
     99%    9.45ms
  3970073 requests in 30.10s, 851.87MB read
Requests/sec: 131899.30
Transfer/sec:     28.30MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.30ms    2.08ms  37.99ms   90.64%
    Req/Sec    26.37k     6.64k   46.09k    62.06%
  Latency Distribution
     50%  611.00us
     75%    1.21ms
     90%    3.14ms
     99%   10.66ms
  3948456 requests in 30.10s, 847.23MB read
Requests/sec: 131180.79
Transfer/sec:     28.15MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.9:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.94ms  32.38ms   90.38%
    Req/Sec    26.47k     6.26k   46.97k    62.39%
  Latency Distribution
     50%  626.00us
     75%    1.15ms
     90%    3.04ms
     99%    9.81ms
  3963862 requests in 30.10s, 850.54MB read
Requests/sec: 131692.76
Transfer/sec:     28.26MB
### Combined result for Kong git:master:
RPS     Avg: 131590.95
Latency Avg: 1.27ms    Max: 37.99ms
   P90 (ms): 2.97, 3.14, 3.04
   P99 (ms): 9.45, 10.66, 9.81
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2022

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.16ms    1.82ms  30.99ms   88.19%
    Req/Sec    33.42k     8.72k   70.40k    62.82%
  Latency Distribution
     50%  463.00us
     75%    0.96ms
     90%    3.48ms
     99%    9.04ms
  4991798 requests in 30.10s, 1.05GB read
Requests/sec: 165845.19
Transfer/sec:     35.59MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  32.25ms   87.99%
    Req/Sec    33.04k     9.23k   58.49k    58.06%
  Latency Distribution
     50%  483.00us
     75%    0.93ms
     90%    3.63ms
     99%    9.35ms
  4936998 requests in 30.10s, 1.03GB read
Requests/sec: 164023.27
Transfer/sec:     35.20MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.88ms  36.04ms   88.29%
    Req/Sec    32.82k     8.90k   56.35k    62.18%
  Latency Distribution
     50%  472.00us
     75%    0.99ms
     90%    3.55ms
     99%    9.34ms
  4904569 requests in 30.10s, 1.03GB read
Requests/sec: 162946.75
Transfer/sec:     34.96MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164271.74
Latency Avg: 1.18ms    Max: 36.04ms
   P90 (ms): 3.48, 3.63, 3.55
   P99 (ms): 9.04, 9.35, 9.34
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.88ms  39.17ms   88.75%
    Req/Sec    30.99k     8.27k   49.77k    58.79%
  Latency Distribution
     50%  508.00us
     75%    0.98ms
     90%    3.46ms
     99%    9.39ms
  4631134 requests in 30.10s, 0.97GB read
Requests/sec: 153864.45
Transfer/sec:     33.02MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.91ms  41.96ms   88.70%
    Req/Sec    31.06k     8.30k   54.95k    57.92%
  Latency Distribution
     50%  516.00us
     75%    0.96ms
     90%    3.52ms
     99%    9.50ms
  4642142 requests in 30.10s, 0.97GB read
Requests/sec: 154226.07
Transfer/sec:     33.09MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  33.07ms   88.81%
    Req/Sec    30.97k     8.21k   53.72k    59.73%
  Latency Distribution
     50%  506.00us
     75%    1.00ms
     90%    3.44ms
     99%    9.33ms
  4636582 requests in 30.10s, 0.97GB read
Requests/sec: 154041.00
Transfer/sec:     33.05MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154043.84
Latency Avg: 1.19ms    Max: 41.96ms
   P90 (ms): 3.46, 3.52, 3.44
   P99 (ms): 9.39, 9.5, 9.33
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.88ms  35.00ms   90.74%
    Req/Sec    26.37k     6.78k   48.21k    62.79%
  Latency Distribution
     50%  616.00us
     75%    1.18ms
     90%    2.84ms
     99%    9.66ms
  3949486 requests in 30.10s, 847.45MB read
Requests/sec: 131213.55
Transfer/sec:     28.15MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.81ms  37.39ms   90.63%
    Req/Sec    26.53k     6.72k   44.25k    59.14%
  Latency Distribution
     50%  633.00us
     75%    1.10ms
     90%    2.74ms
     99%    9.05ms
  3973313 requests in 30.10s, 852.57MB read
Requests/sec: 132005.10
Transfer/sec:     28.32MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.87ms  31.69ms   90.51%
    Req/Sec    26.57k     6.83k   45.39k    60.85%
  Latency Distribution
     50%  620.00us
     75%    1.13ms
     90%    2.90ms
     99%    9.55ms
  3971618 requests in 30.10s, 852.20MB read
Requests/sec: 131949.99
Transfer/sec:     28.31MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 131722.88
Latency Avg: 1.22ms    Max: 37.39ms
   P90 (ms): 2.84, 2.74, 2.9
   P99 (ms): 9.66, 9.05, 9.55
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.98ms  40.21ms   88.60%
    Req/Sec    32.60k     9.03k   54.04k    58.85%
  Latency Distribution
     50%  472.00us
     75%    1.02ms
     90%    3.61ms
     99%    9.82ms
  4872179 requests in 30.10s, 1.02GB read
Requests/sec: 161870.65
Transfer/sec:     34.73MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  34.07ms   88.03%
    Req/Sec    32.99k     8.68k   58.70k    59.39%
  Latency Distribution
     50%  477.00us
     75%    0.95ms
     90%    3.63ms
     99%    9.31ms
  4929873 requests in 30.10s, 1.03GB read
Requests/sec: 163784.79
Transfer/sec:     35.14MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  30.06ms   88.29%
    Req/Sec    32.96k     9.01k   55.54k    60.65%
  Latency Distribution
     50%  472.00us
     75%    0.97ms
     90%    3.60ms
     99%    9.49ms
  4927041 requests in 30.10s, 1.03GB read
Requests/sec: 163694.13
Transfer/sec:     35.12MB
### Combined result for Kong git:master:
RPS     Avg: 163116.52
Latency Avg: 1.21ms    Max: 40.21ms
   P90 (ms): 3.61, 3.63, 3.6
   P99 (ms): 9.82, 9.31, 9.49
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  33.14ms   88.74%
    Req/Sec    30.75k     8.33k   53.12k    61.06%
  Latency Distribution
     50%  518.00us
     75%    1.00ms
     90%    3.47ms
     99%    9.32ms
  4605158 requests in 30.10s, 0.96GB read
Requests/sec: 152996.93
Transfer/sec:     32.83MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  32.95ms   88.77%
    Req/Sec    30.92k     8.15k   56.92k    60.47%
  Latency Distribution
     50%  512.00us
     75%    1.00ms
     90%    3.44ms
     99%    9.25ms
  4630869 requests in 30.10s, 0.97GB read
Requests/sec: 153850.70
Transfer/sec:     33.01MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  37.08ms   88.73%
    Req/Sec    30.74k     8.26k   57.67k    58.34%
  Latency Distribution
     50%  504.00us
     75%    1.02ms
     90%    3.51ms
     99%    9.43ms
  4603034 requests in 30.10s, 0.96GB read
Requests/sec: 152926.49
Transfer/sec:     32.81MB
### Combined result for Kong git:master:
RPS     Avg: 153258.04
Latency Avg: 1.19ms    Max: 37.08ms
   P90 (ms): 3.47, 3.44, 3.51
   P99 (ms): 9.32, 9.25, 9.43
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.85ms  32.51ms   90.54%
    Req/Sec    26.52k     6.61k   45.94k    62.92%
  Latency Distribution
     50%  612.00us
     75%    1.16ms
     90%    2.88ms
     99%    9.18ms
  3970701 requests in 30.10s, 852.01MB read
Requests/sec: 131918.33
Transfer/sec:     28.31MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.86ms  32.33ms   90.57%
    Req/Sec    26.50k     6.81k   48.21k    60.86%
  Latency Distribution
     50%  621.00us
     75%    1.14ms
     90%    2.84ms
     99%    9.35ms
  3967241 requests in 30.10s, 851.26MB read
Requests/sec: 131803.26
Transfer/sec:     28.28MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.82ms  33.17ms   90.46%
    Req/Sec    26.70k     6.41k   43.42k    59.14%
  Latency Distribution
     50%  636.00us
     75%    1.09ms
     90%    2.83ms
     99%    9.13ms
  3998857 requests in 30.10s, 858.05MB read
Requests/sec: 132854.01
Transfer/sec:     28.51MB
### Combined result for Kong git:master:
RPS     Avg: 132191.87
Latency Avg: 1.22ms    Max: 33.17ms
   P90 (ms): 2.88, 2.84, 2.83
   P99 (ms): 9.18, 9.35, 9.13
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   565.19us    1.25ms  12.06ms   87.15%
    Req/Sec   170.42k    12.12k  232.03k    70.82%
  Latency Distribution
     50%   57.00us
     75%   96.00us
     90%    2.41ms
     99%    6.25ms
  25447739 requests in 30.10s, 3.32GB read
Requests/sec: 845446.80
Transfer/sec:    112.88MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   567.96us    1.25ms  15.96ms   87.21%
    Req/Sec   154.30k     7.82k  203.00k    74.48%
  Latency Distribution
     50%   63.00us
     75%  105.00us
     90%    2.39ms
     99%    6.24ms
  23043017 requests in 30.10s, 3.00GB read
Requests/sec: 765564.33
Transfer/sec:    102.21MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   568.44us    1.25ms  20.07ms   87.25%
    Req/Sec   154.28k     8.22k  198.42k    75.48%
  Latency Distribution
     50%   64.00us
     75%  106.00us
     90%    2.39ms
     99%    6.30ms
  23043362 requests in 30.10s, 3.00GB read
Requests/sec: 765562.56
Transfer/sec:    102.21MB
### Combined result for upstream directly:
RPS     Avg: 792191.23
Latency Avg: 0.57ms    Max: 20.07ms
   P90 (ms): 2.41, 2.39, 2.39
   P99 (ms): 6.25, 6.24, 6.3
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  31.17ms   88.01%
    Req/Sec    33.14k     9.07k   56.03k    60.39%
  Latency Distribution
     50%  468.00us
     75%    0.97ms
     90%    3.61ms
     99%    9.26ms
  4953061 requests in 30.10s, 1.04GB read
Requests/sec: 164555.57
Transfer/sec:     35.31MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.10ms  36.01ms   88.79%
    Req/Sec    32.48k     9.28k   59.74k    60.52%
  Latency Distribution
     50%  464.00us
     75%    1.05ms
     90%    3.73ms
     99%   10.47ms
  4853586 requests in 30.10s, 1.02GB read
Requests/sec: 161253.84
Transfer/sec:     34.60MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  30.82ms   87.93%
    Req/Sec    33.08k     8.95k   57.92k    60.39%
  Latency Distribution
     50%  480.00us
     75%    0.93ms
     90%    3.63ms
     99%    9.26ms
  4942810 requests in 30.10s, 1.04GB read
Requests/sec: 164217.78
Transfer/sec:     35.24MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163342.40
Latency Avg: 1.22ms    Max: 36.01ms
   P90 (ms): 3.61, 3.73, 3.63
   P99 (ms): 9.26, 10.47, 9.26
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  37.60ms   88.65%
    Req/Sec    30.78k     7.91k   48.39k    58.60%
  Latency Distribution
     50%  516.00us
     75%    1.00ms
     90%    3.48ms
     99%    9.23ms
  4609157 requests in 30.10s, 0.97GB read
Requests/sec: 153129.99
Transfer/sec:     32.86MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.97ms  36.00ms   88.94%
    Req/Sec    30.77k     8.37k   50.86k    62.79%
  Latency Distribution
     50%  497.00us
     75%    1.03ms
     90%    3.53ms
     99%    9.83ms
  4607276 requests in 30.10s, 0.97GB read
Requests/sec: 153067.37
Transfer/sec:     32.84MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.91ms  32.32ms   88.73%
    Req/Sec    30.91k     8.26k   54.08k    60.92%
  Latency Distribution
     50%  508.00us
     75%    1.00ms
     90%    3.53ms
     99%    9.55ms
  4619317 requests in 30.10s, 0.97GB read
Requests/sec: 153471.25
Transfer/sec:     32.93MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 153222.87
Latency Avg: 1.21ms    Max: 37.60ms
   P90 (ms): 3.48, 3.53, 3.53
   P99 (ms): 9.23, 9.83, 9.55
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.82ms  41.06ms   90.74%
    Req/Sec    26.16k     6.66k   46.34k    60.60%
  Latency Distribution
     50%  633.00us
     75%    1.17ms
     90%    2.73ms
     99%    9.21ms
  3917400 requests in 30.10s, 840.57MB read
Requests/sec: 130147.13
Transfer/sec:     27.93MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.97ms  54.47ms   91.06%
    Req/Sec    25.90k     6.85k   49.84k    60.80%
  Latency Distribution
     50%  614.00us
     75%    1.24ms
     90%    2.91ms
     99%    9.96ms
  3878459 requests in 30.10s, 832.21MB read
Requests/sec: 128853.76
Transfer/sec:     27.65MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.88ms  41.21ms   90.61%
    Req/Sec    26.30k     6.80k   45.24k    60.93%
  Latency Distribution
     50%  631.00us
     75%    1.15ms
     90%    2.87ms
     99%    9.47ms
  3938303 requests in 30.10s, 845.05MB read
Requests/sec: 130841.80
Transfer/sec:     28.08MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 129947.56
Latency Avg: 1.24ms    Max: 54.47ms
   P90 (ms): 2.73, 2.91, 2.87
   P99 (ms): 9.21, 9.96, 9.47
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.93ms  35.81ms   88.27%
    Req/Sec    32.48k     9.06k   56.76k    59.32%
  Latency Distribution
     50%  474.00us
     75%    1.02ms
     90%    3.64ms
     99%    9.56ms
  4853644 requests in 30.10s, 1.02GB read
Requests/sec: 161255.63
Transfer/sec:     34.60MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    2.01ms  36.60ms   88.30%
    Req/Sec    32.83k     9.29k   80.20k    59.36%
  Latency Distribution
     50%  461.00us
     75%    1.03ms
     90%    3.75ms
     99%    9.91ms
  4903592 requests in 30.10s, 1.03GB read
Requests/sec: 162913.73
Transfer/sec:     34.96MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  35.59ms   88.00%
    Req/Sec    32.96k     9.05k   56.53k    59.39%
  Latency Distribution
     50%  479.00us
     75%    0.95ms
     90%    3.64ms
     99%    9.31ms
  4924432 requests in 30.10s, 1.03GB read
Requests/sec: 163606.44
Transfer/sec:     35.11MB
### Combined result for Kong git:master:
RPS     Avg: 162591.93
Latency Avg: 1.21ms    Max: 36.60ms
   P90 (ms): 3.64, 3.75, 3.64
   P99 (ms): 9.56, 9.91, 9.31
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.94ms  31.31ms   88.56%
    Req/Sec    30.60k     8.39k   54.85k    60.60%
  Latency Distribution
     50%  515.00us
     75%    1.02ms
     90%    3.62ms
     99%    9.63ms
  4583354 requests in 30.10s, 0.96GB read
Requests/sec: 152272.40
Transfer/sec:     32.67MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.89ms  34.46ms   88.73%
    Req/Sec    30.69k     8.28k   52.97k    60.40%
  Latency Distribution
     50%  516.00us
     75%    1.01ms
     90%    3.49ms
     99%    9.41ms
  4595763 requests in 30.10s, 0.96GB read
Requests/sec: 152684.64
Transfer/sec:     32.76MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.91ms  39.63ms   88.79%
    Req/Sec    30.67k     8.28k   54.34k    59.67%
  Latency Distribution
     50%  496.00us
     75%    1.06ms
     90%    3.51ms
     99%    9.54ms
  4592773 requests in 30.10s, 0.96GB read
Requests/sec: 152585.25
Transfer/sec:     32.74MB
### Combined result for Kong git:master:
RPS     Avg: 152514.10
Latency Avg: 1.21ms    Max: 39.63ms
   P90 (ms): 3.62, 3.49, 3.51
   P99 (ms): 9.63, 9.41, 9.54
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.85ms  36.91ms   90.76%
    Req/Sec    26.21k     6.42k   40.96k    60.33%
  Latency Distribution
     50%  620.00us
     75%    1.16ms
     90%    2.77ms
     99%    9.31ms
  3925939 requests in 30.10s, 842.40MB read
Requests/sec: 130430.71
Transfer/sec:     27.99MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.81ms  36.23ms   90.65%
    Req/Sec    26.27k     6.66k   45.38k    59.60%
  Latency Distribution
     50%  638.00us
     75%    1.12ms
     90%    2.73ms
     99%    9.10ms
  3933183 requests in 30.10s, 843.95MB read
Requests/sec: 130671.99
Transfer/sec:     28.04MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.87ms  34.63ms   90.60%
    Req/Sec    26.36k     6.57k   52.46k    61.40%
  Latency Distribution
     50%  627.00us
     75%    1.13ms
     90%    2.82ms
     99%    9.37ms
  3946490 requests in 30.10s, 846.81MB read
Requests/sec: 131114.02
Transfer/sec:     28.13MB
### Combined result for Kong git:master:
RPS     Avg: 130738.91
Latency Avg: 1.22ms    Max: 36.91ms
   P90 (ms): 2.77, 2.73, 2.82
   P99 (ms): 9.31, 9.1, 9.37
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@dndx dndx merged commit 7b384d6 into master Nov 1, 2022
@dndx dndx deleted the fix/lua_regex_cache_max_entries branch November 1, 2022 07:03
@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2022

🚀 Performance test result

Test Suite: 01-rps 02-flamegraph (baseline,single_route,simple)

Imgur Images Imgur Images Imgur Images Imgur Images

Click to expand
Please see Github Actions artifacts for flamegraphs.

  ### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.98ms  33.15ms   88.48%
    Req/Sec    33.37k     8.94k   57.76k    59.99%
  Latency Distribution
     50%  456.00us
     75%    1.02ms
     90%    3.61ms
     99%    9.74ms
  4987368 requests in 30.10s, 1.05GB read
Requests/sec: 165699.44
Transfer/sec:     35.55MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  33.13ms   88.34%
    Req/Sec    32.93k     8.65k   54.83k    60.19%
  Latency Distribution
     50%  475.00us
     75%    0.98ms
     90%    3.55ms
     99%    9.41ms
  4921689 requests in 30.10s, 1.03GB read
Requests/sec: 163516.17
Transfer/sec:     35.09MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  30.39ms   88.02%
    Req/Sec    33.35k     8.93k   60.00k    60.72%
  Latency Distribution
     50%  473.00us
     75%    0.95ms
     90%    3.58ms
     99%    9.18ms
  4984697 requests in 30.10s, 1.04GB read
Requests/sec: 165606.55
Transfer/sec:     35.53MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 164940.72
Latency Avg: 1.19ms    Max: 33.15ms
   P90 (ms): 3.61, 3.55, 3.58
   P99 (ms): 9.74, 9.41, 9.18
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.93ms  33.71ms   88.81%
    Req/Sec    30.98k     8.11k   52.61k    60.40%
  Latency Distribution
     50%  495.00us
     75%    1.04ms
     90%    3.52ms
     99%    9.67ms
  4638473 requests in 30.10s, 0.97GB read
Requests/sec: 154103.42
Transfer/sec:     33.07MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.86ms  35.06ms   88.51%
    Req/Sec    31.21k     8.06k   54.43k    60.60%
  Latency Distribution
     50%  511.00us
     75%    0.98ms
     90%    3.51ms
     99%    9.26ms
  4673966 requests in 30.10s, 0.98GB read
Requests/sec: 155282.73
Transfer/sec:     33.32MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  43.20ms   88.82%
    Req/Sec    31.11k     7.92k   52.98k    60.40%
  Latency Distribution
     50%  508.00us
     75%    1.00ms
     90%    3.45ms
     99%    9.36ms
  4658346 requests in 30.10s, 0.98GB read
Requests/sec: 154763.54
Transfer/sec:     33.21MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154716.56
Latency Avg: 1.20ms    Max: 43.20ms
   P90 (ms): 3.52, 3.51, 3.45
   P99 (ms): 9.67, 9.26, 9.36
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.90ms  46.27ms   90.80%
    Req/Sec    26.65k     6.71k   43.28k    61.86%
  Latency Distribution
     50%  599.00us
     75%    1.19ms
     90%    2.80ms
     99%    9.59ms
  3990508 requests in 30.10s, 856.26MB read
Requests/sec: 132575.87
Transfer/sec:     28.45MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.85ms  38.54ms   90.62%
    Req/Sec    26.57k     6.66k   49.43k    60.13%
  Latency Distribution
     50%  617.00us
     75%    1.16ms
     90%    2.80ms
     99%    9.34ms
  3978862 requests in 30.10s, 853.76MB read
Requests/sec: 132189.28
Transfer/sec:     28.36MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.81ms  31.95ms   90.55%
    Req/Sec    26.75k     6.70k   48.56k    60.53%
  Latency Distribution
     50%  611.00us
     75%    1.13ms
     90%    2.80ms
     99%    9.18ms
  4005708 requests in 30.10s, 859.52MB read
Requests/sec: 133081.29
Transfer/sec:     28.56MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 132615.48
Latency Avg: 1.22ms    Max: 46.27ms
   P90 (ms): 2.8, 2.8, 2.8
   P99 (ms): 9.59, 9.34, 9.18
  
### Test Suite: git:master #simple #hybrid #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms    1.83ms  30.22ms   88.09%
    Req/Sec    32.99k     8.65k   54.77k    61.05%
  Latency Distribution
     50%  473.00us
     75%    0.97ms
     90%    3.52ms
     99%    9.09ms
  4930412 requests in 30.10s, 1.03GB read
Requests/sec: 163803.82
Transfer/sec:     35.15MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.96ms  36.22ms   88.38%
    Req/Sec    32.78k     8.95k   62.51k    60.52%
  Latency Distribution
     50%  469.00us
     75%    1.01ms
     90%    3.63ms
     99%    9.65ms
  4899226 requests in 30.10s, 1.03GB read
Requests/sec: 162771.26
Transfer/sec:     34.93MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.91ms  31.75ms   88.21%
    Req/Sec    33.05k     8.81k   58.75k    61.32%
  Latency Distribution
     50%  468.00us
     75%    1.00ms
     90%    3.61ms
     99%    9.51ms
  4939328 requests in 30.10s, 1.04GB read
Requests/sec: 164101.51
Transfer/sec:     35.21MB
### Combined result for Kong git:master:
RPS     Avg: 163558.86
Latency Avg: 1.20ms    Max: 36.22ms
   P90 (ms): 3.52, 3.63, 3.61
   P99 (ms): 9.09, 9.65, 9.51
  
### Test Suite: git:master #simple #hybrid #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.90ms  34.87ms   88.79%
    Req/Sec    30.94k     8.09k   50.71k    61.46%
  Latency Distribution
     50%  495.00us
     75%    1.06ms
     90%    3.48ms
     99%    9.38ms
  4633037 requests in 30.10s, 0.97GB read
Requests/sec: 153922.99
Transfer/sec:     33.03MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  34.93ms   88.67%
    Req/Sec    31.16k     8.26k   54.79k    61.86%
  Latency Distribution
     50%  499.00us
     75%    1.00ms
     90%    3.54ms
     99%    9.56ms
  4666076 requests in 30.10s, 0.98GB read
Requests/sec: 155020.18
Transfer/sec:     33.26MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.87ms  31.29ms   88.63%
    Req/Sec    31.18k     8.16k   56.49k    60.93%
  Latency Distribution
     50%  499.00us
     75%    1.00ms
     90%    3.49ms
     99%    9.30ms
  4668768 requests in 30.10s, 0.98GB read
Requests/sec: 155109.72
Transfer/sec:     33.28MB
### Combined result for Kong git:master:
RPS     Avg: 154684.30
Latency Avg: 1.20ms    Max: 34.93ms
   P90 (ms): 3.48, 3.54, 3.49
   P99 (ms): 9.38, 9.56, 9.3
  
### Test Suite: git:master #simple #hybrid #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.82ms  31.49ms   90.62%
    Req/Sec    26.46k     6.34k   42.15k    61.06%
  Latency Distribution
     50%  611.00us
     75%    1.17ms
     90%    2.80ms
     99%    9.24ms
  3963245 requests in 30.10s, 850.41MB read
Requests/sec: 131670.15
Transfer/sec:     28.25MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.81ms  37.00ms   90.54%
    Req/Sec    26.34k     6.79k   44.31k    61.53%
  Latency Distribution
     50%  626.00us
     75%    1.16ms
     90%    2.81ms
     99%    9.11ms
  3945017 requests in 30.10s, 846.49MB read
Requests/sec: 131064.69
Transfer/sec:     28.12MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.81ms  29.19ms   90.54%
    Req/Sec    26.43k     6.39k   44.18k    60.93%
  Latency Distribution
     50%  637.00us
     75%    1.13ms
     90%    2.80ms
     99%    9.11ms
  3958592 requests in 30.10s, 849.41MB read
Requests/sec: 131515.64
Transfer/sec:     28.22MB
### Combined result for Kong git:master:
RPS     Avg: 131416.83
Latency Avg: 1.21ms    Max: 37.00ms
   P90 (ms): 2.8, 2.81, 2.8
   P99 (ms): 9.24, 9.11, 9.11
  
### Result for upstream directly (run 1):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   563.59us    1.25ms  16.03ms   87.29%
    Req/Sec   167.12k    12.62k  212.76k    66.82%
  Latency Distribution
     50%   58.00us
     75%   98.00us
     90%    2.39ms
     99%    6.23ms
  24955465 requests in 30.10s, 3.25GB read
Requests/sec: 829083.10
Transfer/sec:    110.69MB
### Result for upstream directly (run 2):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   571.09us    1.26ms  12.16ms   87.19%
    Req/Sec   152.68k     8.22k  190.88k    74.40%
  Latency Distribution
     50%   63.00us
     75%  107.00us
     90%    2.39ms
     99%    6.31ms
  22785328 requests in 30.02s, 2.97GB read
Requests/sec: 758928.08
Transfer/sec:    101.33MB
### Result for upstream directly (run 3):
Running 30s test @ http://10.68.128.5:8088/test
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   568.04us    1.25ms  19.98ms   87.25%
    Req/Sec   152.86k     7.67k  194.23k    71.69%
  Latency Distribution
     50%   63.00us
     75%  107.00us
     90%    2.38ms
     99%    6.30ms
  22828424 requests in 30.10s, 2.98GB read
Requests/sec: 758421.27
Transfer/sec:    101.26MB
### Combined result for upstream directly:
RPS     Avg: 782144.15
Latency Avg: 0.57ms    Max: 19.98ms
   P90 (ms): 2.39, 2.39, 2.38
   P99 (ms): 6.23, 6.31, 6.3
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins #single_route
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.89ms  33.02ms   88.26%
    Req/Sec    33.10k     8.52k   71.24k    62.16%
  Latency Distribution
     50%  454.00us
     75%    1.03ms
     90%    3.57ms
     99%    9.39ms
  4944224 requests in 30.10s, 1.04GB read
Requests/sec: 164262.81
Transfer/sec:     35.25MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    1.97ms  35.58ms   88.57%
    Req/Sec    32.68k     8.62k   59.14k    62.98%
  Latency Distribution
     50%  451.00us
     75%    1.11ms
     90%    3.60ms
     99%    9.69ms
  4883579 requests in 30.10s, 1.02GB read
Requests/sec: 162246.86
Transfer/sec:     34.81MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.23ms    2.01ms  41.70ms   88.28%
    Req/Sec    32.98k     9.11k   57.29k    60.85%
  Latency Distribution
     50%  472.00us
     75%    0.99ms
     90%    3.73ms
     99%    9.91ms
  4928350 requests in 30.10s, 1.03GB read
Requests/sec: 163734.85
Transfer/sec:     35.13MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 163414.84
Latency Avg: 1.22ms    Max: 41.70ms
   P90 (ms): 3.57, 3.6, 3.73
   P99 (ms): 9.39, 9.69, 9.91
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.19ms    1.88ms  34.98ms   88.53%
    Req/Sec    31.21k     8.27k   50.96k    60.05%
  Latency Distribution
     50%  505.00us
     75%    0.98ms
     90%    3.53ms
     99%    9.31ms
  4664050 requests in 30.10s, 0.98GB read
Requests/sec: 154953.23
Transfer/sec:     33.25MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18ms    1.86ms  34.41ms   88.65%
    Req/Sec    31.13k     7.98k   54.82k    62.52%
  Latency Distribution
     50%  499.00us
     75%    1.00ms
     90%    3.47ms
     99%    9.23ms
  4650994 requests in 30.10s, 0.97GB read
Requests/sec: 154523.01
Transfer/sec:     33.16MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.88ms  27.54ms   88.79%
    Req/Sec    30.84k     7.98k   52.34k    57.61%
  Latency Distribution
     50%  503.00us
     75%    1.03ms
     90%    3.46ms
     99%    9.47ms
  4617655 requests in 30.10s, 0.97GB read
Requests/sec: 153411.73
Transfer/sec:     32.92MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 154295.99
Latency Avg: 1.19ms    Max: 34.98ms
   P90 (ms): 3.53, 3.47, 3.46
   P99 (ms): 9.31, 9.23, 9.47
  
### Test Suite: git:fix/lua_regex_cache_max_entries #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:fix/lua_regex_cache_max_entries (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.26ms    1.89ms  44.33ms   90.52%
    Req/Sec    26.01k     6.68k   42.30k    62.52%
  Latency Distribution
     50%  593.00us
     75%    1.27ms
     90%    3.01ms
     99%    9.42ms
  3894915 requests in 30.10s, 835.74MB read
Requests/sec: 129399.79
Transfer/sec:     27.77MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.80ms  32.36ms   90.76%
    Req/Sec    26.24k     6.25k   46.49k    60.47%
  Latency Distribution
     50%  608.00us
     75%    1.19ms
     90%    2.78ms
     99%    8.92ms
  3928766 requests in 30.10s, 843.01MB read
Requests/sec: 130524.80
Transfer/sec:     28.01MB
### Result for Kong git:fix/lua_regex_cache_max_entries (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.24ms    1.86ms  38.79ms   90.99%
    Req/Sec    26.00k     6.52k   44.82k    62.92%
  Latency Distribution
     50%  614.00us
     75%    1.24ms
     90%    2.79ms
     99%    9.47ms
  3893299 requests in 30.10s, 835.40MB read
Requests/sec: 129346.98
Transfer/sec:     27.75MB
### Combined result for Kong git:fix/lua_regex_cache_max_entries:
RPS     Avg: 129757.19
Latency Avg: 1.24ms    Max: 44.33ms
   P90 (ms): 3.01, 2.78, 2.79
   P99 (ms): 9.42, 8.92, 9.47
  
### Test Suite: git:master #simple #no_plugins #single_route
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.95ms  39.33ms   88.51%
    Req/Sec    33.07k     8.67k   57.08k    62.78%
  Latency Distribution
     50%  451.00us
     75%    1.06ms
     90%    3.58ms
     99%    9.62ms
  4941998 requests in 30.10s, 1.04GB read
Requests/sec: 164189.51
Transfer/sec:     35.23MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.97ms  42.02ms   88.20%
    Req/Sec    33.28k     9.06k   63.00k    60.85%
  Latency Distribution
     50%  470.00us
     75%    0.97ms
     90%    3.68ms
     99%    9.69ms
  4973334 requests in 30.10s, 1.04GB read
Requests/sec: 165233.19
Transfer/sec:     35.45MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/s1-r1
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.92ms  30.99ms   87.87%
    Req/Sec    33.48k     9.19k   56.98k    59.05%
  Latency Distribution
     50%  466.00us
     75%    0.94ms
     90%    3.71ms
     99%    9.50ms
  5004265 requests in 30.10s, 1.05GB read
Requests/sec: 166259.43
Transfer/sec:     35.67MB
### Combined result for Kong git:master:
RPS     Avg: 165227.38
Latency Avg: 1.21ms    Max: 42.02ms
   P90 (ms): 3.58, 3.68, 3.71
   P99 (ms): 9.62, 9.69, 9.5
  
### Test Suite: git:master #simple #no_plugins 10 services each has 10 routes
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.94ms  35.63ms   88.61%
    Req/Sec    31.05k     8.21k   51.51k    61.93%
  Latency Distribution
     50%  508.00us
     75%    0.99ms
     90%    3.60ms
     99%    9.62ms
  4648649 requests in 30.10s, 0.97GB read
Requests/sec: 154441.73
Transfer/sec:     33.14MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.94ms  30.84ms   88.63%
    Req/Sec    30.81k     8.32k   53.16k    58.94%
  Latency Distribution
     50%  500.00us
     75%    1.04ms
     90%    3.61ms
     99%    9.70ms
  4613584 requests in 30.10s, 0.97GB read
Requests/sec: 153276.42
Transfer/sec:     32.89MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    1.92ms  33.65ms   88.52%
    Req/Sec    31.11k     8.03k   53.44k    59.67%
  Latency Distribution
     50%  517.00us
     75%    0.96ms
     90%    3.59ms
     99%    9.52ms
  4658634 requests in 30.10s, 0.98GB read
Requests/sec: 154773.60
Transfer/sec:     33.21MB
### Combined result for Kong git:master:
RPS     Avg: 154163.92
Latency Avg: 1.22ms    Max: 35.63ms
   P90 (ms): 3.6, 3.61, 3.59
   P99 (ms): 9.62, 9.7, 9.52
  
### Test Suite: git:master #simple #key-auth 10 services each has 10 routes with key-auth, 100 consumers
### Result for Kong git:master (run 1):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.20ms    1.78ms  34.30ms   90.78%
    Req/Sec    26.24k     6.48k   45.48k    62.59%
  Latency Distribution
     50%  628.00us
     75%    1.18ms
     90%    2.65ms
     99%    8.93ms
  3929649 requests in 30.10s, 843.20MB read
Requests/sec: 130553.87
Transfer/sec:     28.01MB
### Result for Kong git:master (run 2):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    2.00ms  43.05ms   90.86%
    Req/Sec    26.21k     6.80k   44.74k    61.26%
  Latency Distribution
     50%  605.00us
     75%    1.20ms
     90%    2.95ms
     99%   10.25ms
  3924789 requests in 30.10s, 842.15MB read
Requests/sec: 130393.22
Transfer/sec:     27.98MB
### Result for Kong git:master (run 3):
Running 30s test @ http://10.68.128.3:8000/
  5 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.22ms    1.83ms  39.54ms   90.71%
    Req/Sec    26.28k     6.64k   45.21k    60.27%
  Latency Distribution
     50%  624.00us
     75%    1.17ms
     90%    2.76ms
     99%    9.18ms
  3935395 requests in 30.10s, 844.43MB read
Requests/sec: 130745.45
Transfer/sec:     28.05MB
### Combined result for Kong git:master:
RPS     Avg: 130564.18
Latency Avg: 1.23ms    Max: 43.05ms
   P90 (ms): 2.65, 2.95, 2.76
   P99 (ms): 8.93, 10.25, 9.18
  

Kong error logs are also available in Github Actions artifacts.

Download Artifacts for detailed results and interactive SVG flamegraphs.

@ddskolla
Copy link

ddskolla commented Nov 16, 2022

Hi @mayocream ,
We faced an issue around regex usage and kong performance(cpu spikes) in production recently. When you say a performance issue might occur due to regex trashing. do you have any documentation around what type of perf issues could arise because of this ?
We are currently on 1.5.0.8 Enterprise and would love to know more and add this cach fix in asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants