https://github.com/bobozhengsir/gradle-jmh-example
A gradle multi projects with jmh
https://github.com/bobozhengsir/gradle-jmh-example
gradle gradle-java jmh
Last synced: about 1 month ago
JSON representation
A gradle multi projects with jmh
- Host: GitHub
- URL: https://github.com/bobozhengsir/gradle-jmh-example
- Owner: bobozhengsir
- License: apache-2.0
- Created: 2017-03-25T05:46:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-25T05:54:40.000Z (over 9 years ago)
- Last Synced: 2025-09-08T07:42:27.759Z (11 months ago)
- Topics: gradle, gradle-java, jmh
- Language: Java
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gradle Example (Multi Project & JMH) #
A very simple gradle example which has multi project and jmh project.
## How to run JMH ##
```
./gradlew jmh:clean jmh:build jmh:jmh
```
This task use [jmh-gradle-plugin](https://github.com/blackboard/jmh-gradle-plugin)
The JMH API see [openjdk jmh](http://openjdk.java.net/projects/code-tools/jmh/)
If you use maven, you can create by archetype
```
mvn archetype:generate \
-DinteractiveMode=false \
-DarchetypeGroupId=org.openjdk.jmh \
-DarchetypeArtifactId=jmh-java-benchmark-archetype \
-DgroupId=com.yao \
-DartifactId=jmh-demo \
-Dversion=1.0
```