forked from komiya-atsushi/xgboost-predictor-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (37 loc) · 986 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
40
41
42
43
44
45
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.2'
id 'me.champeau.gradle.jmh' version '0.2.0'
id 'net.ltgt.apt' version '0.3'
}
repositories {
jcenter()
mavenLocal()
}
sourceCompatibility = targetCompatibility = 1.8
tasks.withType(AbstractCompile)*.options*.encoding = "UTF-8"
jmh.jmhVersion = '1.10.+'
jmhJar {
append 'META-INF/BenchmarkList'
append 'META-INF/CompilerHints'
}
dependencies {
compile "org.openjdk.jmh:jmh-core:${jmh.jmhVersion}"
apt "org.openjdk.jmh:jmh-generator-annprocess:${jmh.jmhVersion}"
compile group: 'biz.k11i', name: 'xgboost-predictor', version: '0.1.0'
compile group: 'org.dmlc', name: 'xgboost4j', version: '1.1'
}
jmh {
jmhVersion = "${jmh.jmhVersion}"
benchmarkMode = 'thrpt'
warmup = '1s'
warmupIterations = 20
timeOnIteration = '1s'
iterations = 20
threads = 1
fork = 1
timeUnit = 's'
forceGC = true
}