- Notifications
You must be signed in to change notification settings - Fork108
Micro-benchmarking library for Java
License
google/caliper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NOTICE: The Caliper web application that was atmicrobenchmarks.appspot.com was shut down on August 15, 2022.
Caliper is a tool for measuring Java code performance, primarily focused onmicrobenchmarks.
PreferJMH orJetpack Microbenchmark
For new benchmarks, we recommend using a tool other than Caliper:
- For JVM benchmarks, useJMH, which generally providesmore accurate resultsthan Caliper.
- For Android benchmarks, use theJetpack Microbenchmark library.
To build the JVM version of Caliper (the only supported version at the moment),run:
mvn clean install -am -pl caliper
Caliper currently has a number of artifacts related to Android. These are ina transitional state and no easy way to run Caliper benchmarks on Android iscurrently available.
If you are interested in building the Android artifacts for any reason, you canrun:
mvn clean install -am -pl caliper-android
Note that for these artifacts to build, you must have anANDROID_HOME
environment variable set to the location of an Android SDK containing the fileplatforms/android-25/android.jar
. Alternatively, you can pass-Dandroid.home=<path>
to yourmvn
command to set the Android SDK directorythat way, and/or-Dandroid.sdk.version=<version>
to specify a version otherthan25
(but note that the build may not work with a version lower than25
).
About
Micro-benchmarking library for Java