...
The load tests were run on 4x c4.2xlarge instances.
There appears to be anomaly in the results below (highlighted 99%) where the new implementation is faster than the old. Where as, for other results the percentile of new implementation increases significantly with the increase in load. For example, the first pair of results where no. of clients = 48, the difference is in tens or hundrend and for the last pair of results where no. of clients = 610, the difference is in thousands.
Logically; there should only be increase in response time for GET endpoints, but we see in results that all other endpoints show differences too. This is because all PATCH, POST and DELETE endpoints first call GET endpoint to retrieve an 'id' of thread and/or comment and then make further processing on it.
New Relic:
Here is the new relic permaLink_new_index and permaLink_old_index
where the average rpm for former is 1.55k and for later is 1.48k and 84.5% of requests are made for AccountViewSet.list (i.e. user accounts API for multiple usernames) for later.
...
...
...
No. of clients = 48
req/s = 9.4
Methods | median response time | 95% | 99% |
---|
DELETE_comment | 250 | 310 | 1200 |
DELETE_thread | 160 | 190 | 200 |
GET_comment_list | 150 | 190 | 310 |
GET_thread | 140 | 180 | 220 |
GET_thread_list | 160 | 370 | 520 |
PATCH_comment | 230 | 360 | 1200 |
PATCH_thread | 190 | 240 | 370 |
POST_comment_comment | 290 | 360 | 430 |
POST_comment_response | 250 | 310 | 450 |
POST_thread | 160 | 190 | 200 |
auto_auth | 200 | 250 | 250 |
No. of clients = 48
req/s = 9.6 --> 18min = 8.9
Methods | median response time | median response time | 95% | 95% | 99% | 99% |
---|
DELETE_comment | 260 | 250 | 310 | 300 | 340 | 480 |
DELETE_thread | 160 | 170 | 200 | 210 | 220 | 230 |
GET_comment_list | 160 | 150 | 200 | 200 | 290 | 320 |
GET_thread | 150 | 150 | 190 | 190 | 260 | 280 |
GET_thread_list | 170 | 170 | 370 | 360 | 520 | 520 |
PATCH_comment | 250 | 220 | 410 | 320 | 410 | 410 |
PATCH_thread | 190 | 180 | 250 | 360 | 1200 | 330 |
POST_comment_comment | 300 | 290 | 390 | 340 | 420 | 490 |
POST_comment_response | 260 | 250 | 320 | 300 | 410 | 390 |
POST_thread | 160 | 160 | 210 | 200 | 310 | 370 |
auto_auth | 190 | 220 | 190 | 230 | 190 | 230 |
No. of clients = 96
req/s = 18.5
Methods | median response time | 95% | 99% |
---|
DELETE_comment | 270 | 340 | 390 |
DELETE_thread | 170 | 230 | 330 |
GET_comment_list | 170 | 210 | 330 |
GET_thread | 160 | 200 | 250 |
GET_thread_list | 190 | 440 | 610 |
PATCH_comment | 240 | 330 | 360 |
PATCH_thread | 200 | 260 | 350 |
POST_comment_comment | 310 | 380 | 470 |
POST_comment_response | 260 | 330 | 440 |
POST_thread | 170 | 210 | 340 |
auto_auth | 180 | 220 | 220 |
No. of clients = 96
req/s = 18.7 27min = 18.6
Methods | median response time | median response time | 95% | 95% | 99% | 99% |
---|
DELETE_comment | 280 | 270 | 370 | 340 | 440 | 360 |
DELETE_thread | 180 | 170 | 220 | 220 | 270 | 230 |
GET_comment_list | 170 | 160 | 230 | 210 | 350 | 340 |
GET_thread | 160 | 160 | 220 | 200 | 300 | 270 |
GET_thread_list | 210 | 190 | 500 | 460 | 640 | 600 |
PATCH_comment | 250 | 220 | 360 | 310 | 1400 | 340 |
PATCH_thread | 200 | 190 | 280 | 260 | 380 | 350 |
POST_comment_comment | 320 | 300 | 400 | 370 | 510 | 480 |
POST_comment_response | 270 | 260 | 350 | 330 | 430 | 420 |
POST_thread | 170 | 170 | 220 | 210 | 260 | 340 |
auto_auth | 190 | 180 | 260 | 230 | 260 | 230 |
No. of clients = 162
req/s = 31
Methods | median response time | 95% | 99% |
---|
DELETE_comment | 320 | 400 | 490 |
DELETE_thread | 190 | 240 | 280 |
GET_comment_list | 190 | 250 | 370 |
GET_thread | 190 | 250 | 340 |
GET_thread_list | 220 | 520 | 660 |
PATCH_comment | 270 | 360 | 390 |
PATCH_thread | 230 | 310 | 370 |
POST_comment_comment | 350 | 450 | 540 |
POST_comment_response | 300 | 400 | 490 |
POST_thread | 190 | 240 | 340 |
auto_auth | 200 | 200 | 200 |
No. of clients = 162
req/s = 31.5 31.6
Methods | median response time | median response time | 95% | 95% | 99% | 99% |
---|
DELETE_comment | 350 | 310 | 500 | 410 | 660 | 590 |
DELETE_thread | 210 | 190 | 300 | 240 | 390 | 250 |
GET_comment_list | 210 | 190 | 350 | 250 | 460 | 380 |
GET_thread | 210 | 180 | 320 | 250 | 430 | 360 |
GET_thread_list | 250 | 220 | 620 | 530 | 800 | 670 |
PATCH_comment | 290 | 260 | 440 | 380 | 570 | 1400 |
PATCH_thread | 260 | 220 | 430 | 280 | 580 | 400 |
POST_comment_comment | 380 | 340 | 560 | 450 | 710 | 540 |
POST_comment_response | 330 | 290 | 480 | 400 | 610 | 510 |
POST_thread | 210 | 190 | 310 | 240 | 430 | 370 |
auto_auth | 210 | 210 | 230 | 220 | 230 | 220 |
No. of clients = 240
req/s = 44.6
Methods | median response time | 95% | 99% |
---|
DELETE_comment | 400 | 600 | 700 |
DELETE_thread | 240 | 320 | 530 |
GET_comment_list | 240 | 350 | 480 |
GET_thread | 240 | 360 | 470 |
GET_thread_list | 270 | 630 | 800 |
PATCH_comment | 330 | 510 | 600 |
PATCH_thread | 290 | 420 | 530 |
POST_comment_comment | 420 | 640 | 820 |
POST_comment_response | 360 | 560 | 730 |
POST_thread | 240 | 310 | 440 |
auto_auth | 210 | 210 | 210 |
No. of clients = 240
req/s = 44.7 45.40
Methods | median response time | median response time | 95% | 95% | 99% | 99% |
---|
DELETE_comment | 540 | 390 | 1000 | 650 | 1800 | 1300 |
DELETE_thread | 340 | 240 | 680 | 370 | 2000 | 430 |
GET_comment_list | 340 | 230 | 750 | 350 | 1500 | 500 |
GET_thread | 340 | 230 | 710 | 370 | 1500 | 600 |
GET_thread_list | 410 | 270 | 1000 | 640 | 1700 | 850 |
PATCH_comment | 420 | 300 | 800 | 490 | 1300 | 1200 |
PATCH_thread | 400 | 280 | 750 | 460 | 1300 | 640 |
POST_comment_comment | 580 | 410 | 1100 | 670 | 2500 | 1000 |
POST_comment_response | 500 | 360 | 940 | 560 | 1600 | 860 |
POST_thread | 340 | 230 | 710 | 300 | 1000 | 500 |
auto_auth | 490 | 190 | 610 | 220 | 610 | 220 |
No. of clients = 336
req/s = 53
Methods | median response time | 95% | 99% |
---|
DELETE_comment | 2500 | 5500 | 6500 |
DELETE_thread | 980 | 2300 | 2900 |
GET_comment_list | 800 | 2100 | 2700 |
GET_thread | 920 | 2700 | 3300 |
GET_thread_list | 850 | 2400 | 3300 |
PATCH_comment | 1500 | 3900 | 5000 |
PATCH_thread | 1200 | 3400 | 4100 |
POST_comment_comment | 2300 | 5400 | 7000 |
POST_comment_response | 1700 | 4400 | 5900 |
POST_thread | 740 | 2000 | 2700 |
auto_auth | 330 | 1300 | 1300 |
No. of clients = 336
req/s = 48.9 54.3
Methods | median response time | median response time | 95% | 95% | 99% | 99% |
---|
DELETE_comment | 2300 | 1500 | 3400 | 9200 | 4400 | 12000 |
DELETE_thread | 1700 | 470 | 2600 | 4100 | 3200 | 6700 |
GET_comment_list | 1900 | 510 | 2900 | 5000 | 3900 | 6800 |
GET_thread | 1800 | 590 | 2800 | 6500 | 3700 | 9900 |
GET_thread_list | 2300 | 580 | 5200 | 4900 | 6800 | 6800 |
PATCH_comment | 2200 | 810 | 3200 | 7600 | 4200 | 1100 |
PATCH_thread | 1900 | 790 | 3200 | 5400 | 5500 | 7800 |
POST_comment_comment | 2400 | 1300 | 3500 | 9300 | 4300 | 12000 |
POST_comment_response | 2200 | 1000 | 3200 | 7700 | 3900 | 10000 |
POST_thread | 1800 | 470 | 2800 | 4600 | 3600 | 6400 |
auto_auth | 1800 | 320 | 2100 | 320 | 2100 | 320 |
No. of clients = 460
req/s = 44.5
Methods | median response time | 95% | 99% |
---|
DELETE_comment | 5600 | 9800 | 12000 |
DELETE_thread | 3700 | 6200 | 7900 |
GET_comment_list | 3700 | 6100 | 8100 |
GET_thread | 5200 | 9800 | 13000 |
GET_thread_list | 3700 | 6800 | 8600 |
PATCH_comment | 4800 | 7900 | 9500 |
PATCH_thread | 4600 | 7300 | 9900 |
POST_comment_comment | 5500 | 9300 | 11000 |
POST_comment_response | 5000 | 8300 | 10000 |
POST_thread | 3500 | 6000 | 9200 |
auto_auth | 2000 | 2600 | 2600 |
No. of clients = 460
req/s = 32.4 21min = 49.1
...
DELETE_comment
...
DELETE_thread
...
GET_comment_list
...
GET_thread
...
GET_thread_list
...
PATCH_comment
...
PATCH_thread
...
POST_comment_comment
...
POST_comment_response
...
POST_thread
...
auto_auth
...
New Relic:
Here is the new relic permaLink_new_index and permaLink_old_index
| |
---|
No. of clients = 51048 req/s = 329.4 Methods | median response time | 95% | 99% |
---|
DELETE_comment | 7700 250 | 15000310 | 270001200 | DELETE_thread | 5400 160 | 12000190 | 15000200 | GET_comment_list | 6300150 | 14000190 | 31000310 | GET_thread | 8600140 | 19000180 | 36000220 | GET_thread_list | 6400160 | 14000370 | 32000520 | PATCH_comment | 7000230 | 14000360 | 250001200 | PATCH_thread | 6900190 | 16000240 | 35000370 | POST_comment_comment | 7400290 | 15000360 | 36000430 | POST_comment_response | 7000250 | 14000310 | 26000450 | POST_thread | 6000160 | 11000190 | 32000200 | auto_auth | 2900200 | 4000250 | 4400250 |
| No. of clients = 51048 req/s = 30min = 338.9 Methods | median response time | median response time | 95% | 95%99% | 99% |
---|
DELETE_comment | 250 | 7600 | | 14000 | | 19000300 | 480 | DELETE_thread | 170 | 6700 | | 11000 | | 14000210 | 230 | GET_comment_list | 150 | 6700 | | 11000 | | 16000200 | 320 | GET_thread | 150 | 9400 | | 16000 | | 22000190 | 280 | GET_thread_list | | 7000 | | 11000 | | 17000 | 170 | 360 | 520 | PATCH_comment | 220 | 6900 | | 12000 | | 16000320 | 410 | PATCH_thread | 180 | 6900 | | 12000 | | 21000360 | 330 | POST_comment_comment | 290 | 7600 | | 14000 | | 19000340 | 490 | POST_comment_response | 250 | 7200 | | 13000 | | 18000300 | 390 | POST_thread | | 6700 | | 11000 | | 15000160 | 200 | 370 | auto_auth | 220 | 2400 | | 3200 | | 3300230 | 230 |
|
No. of clients = | 57896 req/s = | 2618. | 705 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| 9500 | 26000 | 32000 | 8700 | 25000 | 32000 | 8600 | 22000 | 31000 | 13000 | 27000 | 40000 | 8600 | 22000 | 32000 | 8800 | 22000 | 32000 | 8800 | 20000 | 29000 | 9200 | 24000 | 31000 | OST | 9300 | 24000 | 32000 | 8300 | 20000 | 32000 | 3600 | 5200 | 5500
| No. of clients = | 57896 req/s = | 40.218.6 | median response time | 95% | 99% | DELETE_thread | | 8500 | | 22000 | | 26000 | 9100 | | 24000 | | 32000 | 340 | 360 | DELETE_thread | 170 | 220 | 230 | GET_comment_list |
| 32000 | 8100 | | 22000 | | | 40000 | 12000 | | 26000 | | | 32000 | 8300 | | 22000 | | | 31000 | 8300 | | 23000 | | | | 8000 | | 23000 | | 28000 | 190 | 260 | 350 | POST_comment_comment |
| | 9000OST | | 24000 | | 32000 | | | 8500 | | 23000 | | 32000 | | 8300 | | 22000 | | 32000 | | 4100 | | 5100 | | 5400
|
No. of clients = 162 req/s = 31 Methods | median response time | 95% | 99% |
---|
DELETE_comment | 320 | 400 | 490 | DELETE_thread | 190 | 240 | 280 | GET_comment_list | 190 | 250 | 370 | GET_thread | 190 | 250 | 340 | GET_thread_list | 220 | 520 | 660 | PATCH_comment | 270 | 360 | 390 | PATCH_thread | 230 | 310 | 370 | POST_comment_comment | 350 | 450 | 540 | POST_comment_response | 300 | 400 | 490 | POST_thread | 190 | 240 | 340 | auto_auth | 200 | 200 | 200 |
| No. of clients = 162 req/s = 31.6 Methods | median response time | 95% | 99% |
---|
DELETE_comment | 310 | 410 | 590 | DELETE_thread | 190 | 240 | 250 | GET_comment_list | 190 | 250 | 380 | GET_thread | 180 | 250 | 360 | GET_thread_list | 220 | 530 | 670 | PATCH_comment | 260 | 380 | 1400 | PATCH_thread | 220 | 280 | 400 | POST_comment_comment | 340 | 450 | 540 | POST_comment_response | 290 | 400 | 510 | POST_thread | 190 | 240 | 370 | auto_auth | 210 | 220 | 220 |
|
No. of clients = 240 req/s = 44.6 Methods | median response time | 95% | 99% |
---|
DELETE_comment | 400 | 600 | 700 | DELETE_thread | 240 | 320 | 530 | GET_comment_list | 240 | 350 | 480 | GET_thread | 240 | 360 | 470 | GET_thread_list | 270 | 630 | 800 | PATCH_comment | 330 | 510 | 600 | PATCH_thread | 290 | 420 | 530 | POST_comment_comment | 420 | 640 | 820 | POST_comment_response | 360 | 560 | 730 | POST_thread | 240 | 310 | 440 | auto_auth | 210 | 210 | 210 |
| No. of clients = 240 req/s = 45.40 Methods | median response time | 95% | 99% |
---|
DELETE_comment | 390 | 650 | 1300 | DELETE_thread | 240 | 370 | 430 | GET_comment_list | 230 | 350 | 500 | GET_thread | 230 | 370 | 600 | GET_thread_list | 270 | 640 | 850 | PATCH_comment | 300 | 490 | 1200 | PATCH_thread | 280 | 460 | 640 | POST_comment_comment | 410 | 670 | 1000 | POST_comment_response | 360 | 560 | 860 | POST_thread | 230 | 300 | 500 | auto_auth | 190 | 220 | 220 |
|
No. of clients = 336 req/s = 53 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | | | | 7000 | POST_comment_response |
| | | | | | | | |
| No. of clients = 336 req/s = 54.3 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | | | | 12000 | POST_comment_response |
| | | | | | | | |
|
No. of clients = 460 req/s = 44.5 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | | | | 11000 | POST_comment_response |
| | | | | | | | |
| No. of clients = 460 req/s = 49.1 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | | | | 11000 | POST_comment_response |
| | | | | | | | |
|
No. of clients = 510 req/s = 32.4 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | 35000 | POST_comment_comment |
| | | 36000 | POST_comment_response |
| | | | | | | | |
| No. of clients = 510 req/s = 33.9 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | 21000 | POST_comment_comment |
| | | 19000 | POST_comment_response |
| | | | | | | | |
|
No. of clients = 578 req/s = 26.70 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | 29000 | POST_comment_comment |
| | | | POST | | | | | | | | |
| No. of clients = 578 req/s = 40.2 Methods | median response time | 95% | 99% |
---|
DELETE_comment |
| | | | | | | | | | | | | | | | | | | | | 28000 | POST_comment_comment |
| | | | POST | | | | | | | | |
|