-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (40 loc) · 1.16 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'me.champeau.jmh' version '0.6.1'
}
group = 'me.superdurszlak'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.1'
testImplementation 'org.junit-pioneer:junit-pioneer:1.3.8'
}
compileKotlin {
kotlinOptions.jvmTarget = '13'
}
test {
useJUnitPlatform()
}
jmh {
iterations = 10
threads = 1
timeOnIteration = '1s'
batchSize = 1
operationsPerInvocation = 1
benchmarkMode = ['thrpt'] // Benchmark mode. Available modes are: [Throughput/thrpt, AverageTime/avgt, SampleTime/sample, SingleShotTime/ss, All/all]
timeUnit = 's'
fork = 1 // How many times to forks a single benchmark. Use 0 to disable forking altogether
failOnError = true // Should JMH fail immediately if any benchmark had experienced the unrecoverable error?
forceGC = true
resultFormat = 'CSV' // Result format type (one of CSV, JSON, NONE, SCSV, TEXT)
warmupIterations = 1
warmupBatchSize = 1
warmup = '20s'
warmupForks = 1
jmhVersion = '1.28'
}
wrapper {
gradleVersion '6.8.3'
}