As you have probably guessed, one way to run a benchmark is just to execute the main() method. It can be done using java command directly or using the IDE. We talked about it in Chapter 1, Getting Started with Java 12. Yet there is an easier and more convenient way to run a benchmark: by using an IDE plugin.