Writing benchmarks for an application is an open-ended area to explore. Apache JMeter can be overwhelming at first: it has several options to tune in order to write our benchmarks. To begin, we can use the story of our application as a start. The following are some of the questions we can ask ourselves:
- What does our application do?
- What is our users' demographic?
- How do they interact with our application?
Starting with the preceding questions, we can then translate them into actual requests that we can use to test our application.
In the sample application that we wrote, we have a web application that displays Hello World to our users. In web applications, we are typically interested with the throughput and response time. Throughput refers to the number of users that can receive Hello World at a time. Response time describes the time lag before...