-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
68 lines (60 loc) · 2.49 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "me.champeau.gradle:jmh-gradle-plugin:0.3.1"
classpath "gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.4.1"
}
}
repositories {
jcenter()
}
subprojects {
apply plugin: 'me.champeau.gradle.jmh'
apply plugin: 'io.morethan.jmhreport'
// apply plugin: 'ajk.gradle.elastic'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenLocal()
}
dependencies {
jmh 'org.slf4j:slf4j-simple:1.7.25'
}
jmh {
iterations = 3
// benchmarkMode = ['thrpt','avgt']
// batchSize = 1 // Batch size: number of benchmark method calls per operation. (some benchmark modes can ignore this setting)
fork = 1 // How many times to forks a single benchmark. Use 0 to disable forking altogether
failOnError = false
// forceGC = false // Should JMH force GC between iterations?
humanOutputFile = project.file("${project.buildDir}/reports/jmh/human.txt") // human-readable output file
resultsFile = project.file("${project.buildDir}/reports/jmh/results.json") // results file
// operationsPerInvocation = 3
// timeOnIteration = '1s' // Time to spend at each measurement iteration.
resultFormat = 'JSON' // Result format type (one of CSV, JSON, NONE, SCSV, TEXT)
// synchronizeIterations = false // Synchronize iterations?
// threads = 4 // Number of worker threads to run with.
// threadGroups = [2,3,4] //Override thread group distribution for asymmetric benchmarks.
// timeout = '1s' // Timeout for benchmark iteration.
// timeUnit = 'ms' // Output time unit. Available time units are: [m, s, ms, us, ns].
// verbosity = 'NORMAL' // Verbosity mode. Available modes are: [SILENT, NORMAL, EXTRA]
// warmup = '1s' // Time to spend at each warmup iteration.
// warmupBatchSize = 3
// warmupForks = 0 // How many warmup forks to make for a single benchmark. 0 to disable warmup forks.
warmupIterations = 3 // Number of warmup iterations to do.
jmhVersion = '1.19'
}
jmhReport {
jmhResultPath = project.file("${project.buildDir}/reports/jmh/results.json")
jmhReportOutput = project.file('build/reports/jmh')
}
tasks.jmh.finalizedBy tasks.jmhReport
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}