...
GET:
Will also be testing against different course sizes.
Expand |
---|
title | Invalid: Old test that was invalid due to the way mongo is set up |
---|
|
Using 10 locust users with min/max time of 1000/2000ms, GET requests for sent for either a single thread or randomly from a selection of 10% of the threads in a course. This was tested against a sandbox. - It seems like getting a random thread vs. the same thread does not make a reliably noticeable difference.
- As number of posts in the database increase, the response time also increases.
- Number of posts in a course does not seem to be matter for GETting a post.
Update: This conclusion is invalid as the sandbox does not have the proper indexes. Approx Total Posts | Name | # requests | # fails | Median | Average | Min | Max | Content Size | # reqs/sec | 1000 | GET a random Thread out of 1000 Posts | 2671 | 0 | 140 | 150 | 125.5698204 | 410.5699062 | 1178 | 5.8 | 1000 | GET a single Thread out of 1000 Posts | 2262 | 0 | 140 | 151 | 126.8491745 | 337.1069431 | 1178 | 5.9 | 11000 | GET a random Thread out of 10000 Posts | 1522 | 0 | 180 | 196 | 164.470911 | 447.6130009 | 1178 | 6 | 11000 | GET a single Thread out of 10000 Posts | 1593 | 0 | 180 | 198 | 164.4868851 | 480.9308052 | 1178 | 5.8 | 11100 | GET a random Thread out of 100 Posts | 542 | 0 | 180 | 193 | 164.2448902 | 419.1830158 | 1178 | 5.9 | 11100 | GET a single Thread out of 100 Posts | 738 | 0 | 180 | 199 | 165.0490761 | 434.2639446 | 1178 | 6 | 12100 | GET a random Thread out of 1000 Posts | 683 | 0 | 180 | 204 | 166.1930084 | 489.5379543 | 1178 | 5.6 | 12100 | GET a single Thread out of 1000 Posts | 1049 | 0 | 180 | 202 | 169.2481041 | 443.4149265 | 1178 | 6 | 13100 | GET a random Thread out of 1000 Posts | 1473 | 0 | 180 | 209 | 171.4019775 | 1157.299042 | 1178 | 6.1 | 13100 | GET a single Thread out of 1000 Posts | 1317 | 0 | 180 | 204 | 170.7370281 | 510.4939938 | 1178 | 5.8 | 14100 | GET a random Thread out of 1000 Posts | 855 | 0 | 190 | 209 | 175.9641171 | 468.7230587 | 1178 | 6 | 14100 | GET a single Thread out of 1000 Posts | 7557 | 0 | 190 | 213 | 173.609972 | 1970.304012 | 1178 | 5.1 |
|
...