Writing performance tests – the pitfalls

Performance tests have some challenges you need to take into account when you write your tests to avoid having a lot of false positive results (not passing tests where the performance is actually acceptable).

The most common issues you will encounter are:

  • How to manage the external systems: We know that external systems are very important in applications today, but it is not always trivial to have them during tests.
  • How to be deterministic: Continuous integration/test platforms are often shared. How do you ensure you have the resources needed in order to have a deterministic execution time and to not be slown down, as another build is using all the available resources?
  • How to handle the infrastructure: ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.