https://github.com/turbo87/gradle-perf
JMH integration for Gradle
https://github.com/turbo87/gradle-perf
Last synced: about 1 month ago
JSON representation
JMH integration for Gradle
- Host: GitHub
- URL: https://github.com/turbo87/gradle-perf
- Owner: Turbo87
- License: apache-2.0
- Created: 2014-08-08T21:00:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-09T13:34:12.000Z (almost 12 years ago)
- Last Synced: 2025-01-05T12:52:06.312Z (over 1 year ago)
- Language: Groovy
- Size: 254 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Gradle 'perf' Plugin
[JMH](http://openjdk.java.net/projects/code-tools/jmh/) integration for [Gradle](http://www.gradle.org/).
## Example
```groovy
// add the plugin dependency
buildscript {
repositories {
maven { url 'https://dl.bintray.com/tbieniek/maven' }
}
dependencies {
classpath 'gradleperf:gradle-perf:1.1.0'
}
}
// apply the plugin
apply plugin: 'perf'
// optionally configure the plugin
perf {
all {
args = ['-f', '10']
}
simple {
args = ['-f', '1']
}
}
// optionally change the source set location
// default: 'src/perf/java'
sourceSets {
perf.java.srcDir 'perf'
}
// optionally declare any benchmark dependencies
dependencies {
perfCompile 'org.apache.commons:commons-io:1.3.2'
}
...
```
will result in:
```
------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------
Benchmark tasks
---------------
perf - Runs the performance benchmarks.
perfSimple - Runs the simple performance benchmarks.
...
```
## Similar Projects
* [melix/jmh-gradle-plugin](https://github.com/melix/jmh-gradle-plugin)
This plugin is mostly similar, but is using a 'fat jar' approach to run JMH.
## License
gradle-perf is free software, and may be redistributed under the Apache license v2.0. (see [LICENSE](LICENSE))