Add auto test in gradle (light tree)
Additionally removed benchmarks from auto test because they require manual setting. Instruction was also added.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
2ca7978544
commit
f3a7db2428
@@ -503,6 +503,7 @@ tasks {
|
||||
dependsOn(":compiler:fir:psi2fir:test")
|
||||
dependsOn(":compiler:fir:resolve:test")
|
||||
dependsOn(":compiler:fir:fir2ir:test")
|
||||
dependsOn(":compiler:fir:lightTree:test")
|
||||
}
|
||||
|
||||
create("scriptingTest") {
|
||||
|
||||
@@ -37,6 +37,7 @@ sourceSets {
|
||||
|
||||
projectTest {
|
||||
workingDir = rootDir
|
||||
exclude("**/benchmark/**")
|
||||
}
|
||||
|
||||
val compactClasspath by tasks.creating(Jar::class) {
|
||||
|
||||
+7
@@ -14,6 +14,13 @@ import org.openjdk.jmh.annotations.*
|
||||
import java.io.File
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
/**
|
||||
* This class is base for all benchmarks.
|
||||
*
|
||||
* To run benchmarks use gradle and consistently run next tasks:
|
||||
* 1. jmhBytecode
|
||||
* 2. jmhExec
|
||||
*/
|
||||
@BenchmarkMode(Mode.SingleShotTime)
|
||||
@Warmup(iterations = 10, batchSize = 1)
|
||||
@Measurement(iterations = 10, batchSize = 1)
|
||||
|
||||
Reference in New Issue
Block a user