Skip to content

LajosPolya/JMH-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JMH Test

This repository is set up to run JMH performance tests. Currently, it only contains one project which has all the instructions necessary to run the tests.

Importing JARs

This project depends on the following dependency:

<dependency>
    <groupId>com.github.lajospolya</groupId>
    <artifactId>meterRegistryPerformance</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

That dependency is not published to the Maven Central repository. Therefore, in order to run this test, you must pull the meterRegistryPerformance GitHub repo, build it, and publish it to your local maven repository. Instructions to do this are found in the projet's README.

Running the Benchmarks

It is recommended that the benchmarks are run on the CLI to get most reliable results.

Run the following to build the JARs.

mvn clean install

Then run the following to run the benchmarks.

java -jar target/benchmarks.jar MicrometerCounterBenchmark -t 4 -f 1

For more complete instructions, read the .java file you want to run, for example, MicrometerCounterBenchmark.java.

About

Use JMH to test performance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages