forked from MaXal/PerformanceInvestigation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
39 lines (30 loc) · 1005 Bytes
/
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
plugins {
id 'java'
id "me.champeau.jmh" version "0.6.6"
}
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/org.openjdk.jmh/jmh-core
implementation group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.35'
// https://mvnrepository.com/artifact/org.openjdk.jmh/jmh-generator-annprocess
implementation group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.35'
// prevents JMH's "missing /META-INF/BenchmarkList" error
jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.35'
}
sourceSets {
jmh {
java.srcDirs = ['src/main/java']
resources.srcDirs = ['src/main/resources']
compileClasspath += sourceSets.main.runtimeClasspath
}
}
jmh {
// -- default values for performance test
jvmArgs = ['-Xms4096m -Xmx4096m -Xss1024k']
resultFormat = 'csv'
resultsFile = file('build/reports/benchmarks.csv')
}