You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: technical-reports/Performance-Testing.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,30 +20,46 @@ This report gives a brief overview of the profiling operations performed on TEAM
20
20
TEAMMATES is one of the biggest student projects in the open source community. Currently, TEAMMATES boasts of a community comprising over 450 developers and a codebase of nearly 130LoC (as of 15th April, 2019).
21
21
Maintaining such a project demands high quality standards to ensure long term survival.
22
22
This means, continuously monitoring code health and product performance. As the number of developers and user base continue to grow, we need to ensure optimal performance at all times.
23
-
In this report, we propose a viable solution to perform regression tests that will help developers keep a track of the potential bottlenecks and areas of optimizations.
23
+
In this report, we propose a viable solution that will help developers monitor the potential bottlenecks and areas of optimizations.
24
24
This will help boost the performance as the product evolves over time.
25
25
26
26
## Overview of Solution
27
27
28
-
The idea behind L&P tests is to simplify the process of understanding production performance and enable the developers to address bottlenecks before they become genuine production issues.
28
+
The idea behind L&P tests is to simplify the process of understanding production performance. This is done by simulating a heavy load on a server by creating a large number of virtual concurrent users to web server.
29
29
Implementing these tests involves a few key points:
30
30
31
-
* A tool/software to help performing these tests
32
-
* A database to store the data of the profiler
33
-
* A way of generating reports to help developers understand the metrics
31
+
* A tool/software to help performing these tests.
32
+
* A method to simulate a large number of users and send requests to a target server.
33
+
* A way of generating reports to help developers understand the metrics.
34
34
35
35
After carefully considering various tools, we decided to use [Apache JMeter](https://jmeter.apache.org/) to help running the performance tests.
36
36
In this report we will discuss the reasons behind why we chose JMeter and a more detailed description of our implementation.
37
37
38
38
## Tools considered for Performance Testing
39
39
40
+
Some of the tools that we considered before deciding on JMeter were:
One of the main reasons we use JMeter over the other tools was the extensive documentation we found online. There are a number of resources to help you get started. Some of which we have listed below:
49
+
50
+
*[JMeter Tutorial for beginners](https://www.guru99.com/jmeter-tutorials.html)
51
+
*[How to use JMeter](https://www.blazemeter.com/blog/how-use-jmeter-assertions-three-easy-steps)
52
+
*[The official website](https://jmeter.apache.org/usermanual/build-web-test-plan.html) also offers a good documentation on how to get started.
53
+
54
+
Some other reasons why we found JMeter to be useful:
42
55
56
+
**Open Source** - JMeter is an open source software. This means that it can be downloaded free of cost. The developer can use its source code, can modify and customize it as per their requirement.
57
+
**Ease of Integration Integration** - It is easier to integrate JMeter into the project because of the [JMeter Java API](https://jmeter.apache.org/api/index.html). There is also a [jmeter-gradle plugin](https://github.com/jmeter-gradle-plugin/jmeter-gradle-plugin) if you want to make it a part of your build process.
58
+
**Roust Reporting** - JMeter can generate the effective reporting. The test result can be visualized by using Graph, Chart, and Tree View. JMeter supports different formats for reporting like text, XML, HTML and JSON.
43
59
44
60
## Current implementation of the solution
45
61
46
-
JMeter offers us a couple of ways to perform the tests. We had the choice of performing these tests with automating tools like [jmeter-gradle plugin](https://github.com/jmeter-gradle-plugin/jmeter-gradle-plugin) and the [JMeter Java API](https://jmeter.apache.org/api/index.html).
62
+
JMeter offers us a couple of ways to perform the tests. We had the choice of performing these tests with automating tools like jmeter-gradle plugin and the JMeter Java API.
47
63
We explored both possibilities but ended up using the JMeter Java API. Some key observations we made:
48
64
49
65
* The jmeter-gradle-plugin is not well maintained and does not have easy-to-find documentation.
@@ -69,3 +85,4 @@ A more detailed overview of the tasks performed can be seen in the [Continuous P
69
85
## Future Work
70
86
71
87
We need to fine-tune the L&P test parameters and set suitable thresholds for failure. These should align with the goals of the application.
88
+
Currently login takes a lot of time (compared to student profile, at least). So, we can explore the idea of using a delay after login, and testing the endpoint after that.
0 commit comments