Skip to Content
Learn Java 17 Programming - Second Edition
book

Learn Java 17 Programming - Second Edition

by Nick Samoylov
July 2022
Beginner
748 pages
15h 1m
English
Packt Publishing
Content preview from Learn Java 17 Programming - Second Edition

Chapter 16: Java Microbenchmark Harness

In this chapter, you will learn about a Java Microbenchmark Harness (JMH) project that allows measuring various code performance characteristics. If performance is an important issue for your application, this tool can help you to identify bottlenecks with precision—up to the method level.

In addition to theoretical knowledge, you will have a chance to run JMH using practical demo examples and recommendations.

The following topics will be covered in this chapter:

  • What is JMH?
  • Creating a JMH benchmark
  • Running the benchmark
  • Using the IDE plugin
  • JMH benchmark parameters
  • JMH usage examples

By the end of the chapter, you will be able to not only measure the average execution time of an application and other ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
The Well-Grounded Java Developer, Second Edition

The Well-Grounded Java Developer, Second Edition

Benjamin Evans, Martijn Verburg, Jason Clark

Publisher Resources

ISBN: 9781803241432Supplemental Content