The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security

      THE unique Spring Security education if you’re working with Java today

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

    • View All Spring Courses

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

    • Learn Mockito

      Enhance your unit tests through practical mocking

    • View All Courses

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

  • Category upJava String
  • Category upJava Concurrency
  • Category upJava Streams

Tag: JMH

Java Microbenchmark Harness (JMH) is a tool for creating benchmarks in Java. Learn how to analyze and optimize your code by reading the guides below.

>> Effect of Idempotence on the Performance of a Kafka Producer

>> Java Split String Performance

>> Why Is 2 * (i * i) Faster Than 2 * i * i in Java?

>> Difference Between ZipFile and ZipInputStream in Java

>> Difference Between Hashtable and ConcurrentHashMap in Java

>> Streams vs. Loops in Java

>> Performance Comparison Between Different Java String Concatenation Methods

>> Split a String Into Digit and Non-Digit Substrings

>> Parallelize for Loop in Java

>> Array vs. List Performance in Java

>> Introduction to Roaring Bitmap

>> Set vs List in Java

>> Filter Java Stream to 1 and Only 1 Element

>> Clearing a StringBuilder or StringBuffer

>> Performance of System.arraycopy() vs. Arrays.copyOf()

>> Collection.toArray(new T[0]) or .toArray(new T[size])

>> The Java final Keyword – Impact on Performance

>> Collections.synchronizedMap vs. ConcurrentHashMap

>> Performance of removeAll() in a HashSet

>> Performance Comparison of boolean[] vs BitSet

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • Next →
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • Login Course Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Spring Framework Introduction
  • All About String in Java
  • Security with Spring

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo