diff --git a/docs/images/GlobalRanking/1000UsersGR.png b/docs/images/GlobalRanking/1000UsersGR.png new file mode 100644 index 0000000..83a90a7 Binary files /dev/null and b/docs/images/GlobalRanking/1000UsersGR.png differ diff --git a/docs/images/GlobalRanking/1UserGR.png b/docs/images/GlobalRanking/1UserGR.png new file mode 100644 index 0000000..a654ec5 Binary files /dev/null and b/docs/images/GlobalRanking/1UserGR.png differ diff --git a/docs/images/GlobalRanking/2000UsersGR.png b/docs/images/GlobalRanking/2000UsersGR.png new file mode 100644 index 0000000..d8781da Binary files /dev/null and b/docs/images/GlobalRanking/2000UsersGR.png differ diff --git a/docs/images/GlobalRanking/250UsersGR.png b/docs/images/GlobalRanking/250UsersGR.png new file mode 100644 index 0000000..2ef7b1c Binary files /dev/null and b/docs/images/GlobalRanking/250UsersGR.png differ diff --git a/docs/images/GlobalRanking/5000UsersGR.png b/docs/images/GlobalRanking/5000UsersGR.png new file mode 100644 index 0000000..238075d Binary files /dev/null and b/docs/images/GlobalRanking/5000UsersGR.png differ diff --git a/docs/images/GlobalRanking/GeneralGR.png b/docs/images/GlobalRanking/GeneralGR.png new file mode 100644 index 0000000..de43e99 Binary files /dev/null and b/docs/images/GlobalRanking/GeneralGR.png differ diff --git a/docs/images/GlobalRanking/GraphicGR.png b/docs/images/GlobalRanking/GraphicGR.png new file mode 100644 index 0000000..5a97eff Binary files /dev/null and b/docs/images/GlobalRanking/GraphicGR.png differ diff --git a/docs/images/PersonalRanking/1000UsersPR.png b/docs/images/PersonalRanking/1000UsersPR.png new file mode 100644 index 0000000..06ed7f7 Binary files /dev/null and b/docs/images/PersonalRanking/1000UsersPR.png differ diff --git a/docs/images/PersonalRanking/1UserPR.png b/docs/images/PersonalRanking/1UserPR.png new file mode 100644 index 0000000..88e0774 Binary files /dev/null and b/docs/images/PersonalRanking/1UserPR.png differ diff --git a/docs/images/PersonalRanking/2000UsersPR.png b/docs/images/PersonalRanking/2000UsersPR.png new file mode 100644 index 0000000..d611cd2 Binary files /dev/null and b/docs/images/PersonalRanking/2000UsersPR.png differ diff --git a/docs/images/PersonalRanking/250UsersPR.png b/docs/images/PersonalRanking/250UsersPR.png new file mode 100644 index 0000000..abb8b99 Binary files /dev/null and b/docs/images/PersonalRanking/250UsersPR.png differ diff --git a/docs/images/PersonalRanking/5000UsersPR.png b/docs/images/PersonalRanking/5000UsersPR.png new file mode 100644 index 0000000..b87e85c Binary files /dev/null and b/docs/images/PersonalRanking/5000UsersPR.png differ diff --git a/docs/images/PersonalRanking/GeneralPR.png b/docs/images/PersonalRanking/GeneralPR.png new file mode 100644 index 0000000..5d40046 Binary files /dev/null and b/docs/images/PersonalRanking/GeneralPR.png differ diff --git a/docs/images/PersonalRanking/GraphicPR.png b/docs/images/PersonalRanking/GraphicPR.png new file mode 100644 index 0000000..b8c870d Binary files /dev/null and b/docs/images/PersonalRanking/GraphicPR.png differ diff --git a/docs/images/PlayGame/1000UsersGame.png b/docs/images/PlayGame/1000UsersGame.png new file mode 100644 index 0000000..c135f7a Binary files /dev/null and b/docs/images/PlayGame/1000UsersGame.png differ diff --git a/docs/images/PlayGame/1UserGame.png b/docs/images/PlayGame/1UserGame.png new file mode 100644 index 0000000..07a62dc Binary files /dev/null and b/docs/images/PlayGame/1UserGame.png differ diff --git a/docs/images/PlayGame/2000UsersGame.png b/docs/images/PlayGame/2000UsersGame.png new file mode 100644 index 0000000..f067fa6 Binary files /dev/null and b/docs/images/PlayGame/2000UsersGame.png differ diff --git a/docs/images/PlayGame/250UsersGame.png b/docs/images/PlayGame/250UsersGame.png new file mode 100644 index 0000000..d4ed279 Binary files /dev/null and b/docs/images/PlayGame/250UsersGame.png differ diff --git a/docs/images/PlayGame/5000UsersGame.png b/docs/images/PlayGame/5000UsersGame.png new file mode 100644 index 0000000..16493bf Binary files /dev/null and b/docs/images/PlayGame/5000UsersGame.png differ diff --git a/docs/images/PlayGame/GeneralGame.png b/docs/images/PlayGame/GeneralGame.png new file mode 100644 index 0000000..906b8c4 Binary files /dev/null and b/docs/images/PlayGame/GeneralGame.png differ diff --git a/docs/images/PlayGame/GraphicGame.png b/docs/images/PlayGame/GraphicGame.png new file mode 100644 index 0000000..a1a798f Binary files /dev/null and b/docs/images/PlayGame/GraphicGame.png differ diff --git a/docs/src/14_testing.adoc b/docs/src/14_testing.adoc index b28e323..24407f7 100644 --- a/docs/src/14_testing.adoc +++ b/docs/src/14_testing.adoc @@ -63,39 +63,48 @@ image:ShowProfile/GraphicProfile.png[GraphicProfile] ==== Play a game 1 User: -image:Login/Login1User.png[Login1User] +image:PlayGame/[Game1User] 250 Users: -image:Login/Login1User.png[Login1User] +image:PlayGame/250UsersGame.png[Game250Users] 1000 Users: -image:Login/Login1User.png[Login1User] +image:PlayGame/1000UsersGame.png[Game1000Users] 2000 Users: -image:Login/Login1User.png[Login1User] +image:PlayGame/2000UsersGame.png[Game2000Users] 5000 Users: -image:Login/Login1User.png[Login1User] +image:PlayGame/5000UsersGame.png[Game5000Users] +General information: The tests of playing the game were the most expensive loading test by far, since each of the users makes a total of 94 requests to the website, in which the vast majority of them are to update visual features of the game such as points, counter or time bar. These tests were so heavy that we had to modify the usability of the application on the host computer, because it ran out of resources when testing 1000 users. Surprisingly, the website supports up to 1000 active users simultaneously without causing any problems other than slightly high waiting times. But after 2,000 active users, failures increase exponentially. The graph of the 5000 users is shown below, where there is a peak in which there are 4193 active users and more than 5000 requests are being made, of which 3000 of them fail. In total, 280,000 requests are made, really heavy. +image:PlayGame/GeneralGame.png[GeneralProfile] +image:PlayGame/GraphicGame.png[GraphicProfile] ==== Show personal ranking 1 User: -image:Login/Login1User.png[Login1User] +image:PersonalRanking/1UserPR.png[PR1User] 250 Users: -image:Login/Login1User.png[Login1User] +image:PersonalRanking/250UsersPR.png[PR250Users] 1000 Users: -image:Login/Login1User.png[Login1User] +image:PersonalRanking/1000UsersPR.png[PR1000Users] 2000 Users: -image:Login/Login1User.png[Login1User] +image:PersonalRanking/2000UsersPR.png[PR2000Users] 5000 Users: -image:Login/Login1User.png[Login1User] +image:PersonalRanking/5000UsersPR.png[PR5000Users] +General information: For these tests we return a little to normal, compared to the previous tests that were excessively heavy. For these tests, access to the personal ranking and its successive pages was attempted. The results were very positive, with very low response times for up to 5000 users, in the latter case generating some failures that are not proportionally relevant. +image:PersonalRanking/GeneralPR.png[GeneralPR] +image:PersonalRanking/GraphicPR.png[GraphicPR] ==== Show global ranking 1 User: -image:Login/Login1User.png[Login1User] +image:GlobalRanking/1UserGR.png[GR1User] 250 Users: -image:Login/Login1User.png[Login1User] +image:GlobalRanking/250UsersGR.png[GR250Users] 1000 Users: -image:Login/Login1User.png[Login1User] +image:GlobalRanking/1000UsersGR.png[GR1000Users] 2000 Users: -image:Login/Login1User.png[Login1User] +image:GlobalRanking/2000UsersGR.png[GR2000Users] 5000 Users: -image:Login/Login1User.png[Login1User] +image:GlobalRanking/5000UsersGR.png[GR5000Users] +General information: These tests are very similar to the previous ones, but instead of being the personal ranking it is the global one. However, the response times are very different, being much longer in the case of the global ranking. This is because not only do you have to calculate all the players who have a score, but also add their internal scores to know their position in the ranking, which entails a much greater burden, leading to errors related to timeout when there are 5000 users. Furthermore, the graph shows a rather curious peak of errors, in which 2000 simultaneous requests are made and 1900 are failed. +image:GlobalRanking/GeneralGR.png[GeneralGR] +image:GlobalRanking/GraphicGR.png[GraphicGR] ==== Change language 1 User: