Skip to content

Commit 4df1d61

Browse files
committed
Merge branch 'develop' into job-exceptions
2 parents c758169 + bbe6d8a commit 4df1d61

File tree

106 files changed

+340
-10105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+340
-10105
lines changed

benchmarks/build.gradle

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@
22
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
plugins {
6-
id "me.champeau.gradle.jmh" version "0.4.4"
7-
}
5+
apply plugin: "net.ltgt.apt"
6+
apply plugin: "com.github.johnrengelman.shadow"
7+
apply plugin: "me.champeau.gradle.jmh"
88

99
repositories {
1010
maven { url "http://repo.typesafe.com/typesafe/releases/" }
1111
}
1212

13-
dependencies {
14-
jmh 'com.typesafe.akka:akka-actor_2.12:2.5.0'
15-
jmh project(':kotlinx-coroutines-core-common')
16-
jmh project(':kotlinx-coroutines-core')
17-
jmh project(':kotlinx-coroutines-core').sourceSets.test.output
18-
jmh project(':kotlinx-coroutines-io')
19-
}
20-
21-
jmh.jmhVersion = '1.19'
13+
jmh.jmhVersion = '1.21'
2214

23-
jmhJar.archiveName = 'benchmarks.jar'
15+
jmhJar {
16+
baseName 'benchmarks'
17+
classifier = null
18+
version = null
19+
}
2420

25-
//jmh {
26-
// include = ['.*Channel.*Benchmark']
27-
// exclude = ['.*Guice.*', '.*PingPong.*']
28-
//}
21+
dependencies {
22+
compile 'com.typesafe.akka:akka-actor_2.12:2.5.0'
23+
compile project(':kotlinx-coroutines-core-common')
24+
compile project(':kotlinx-coroutines-core')
25+
compile project(':kotlinx-coroutines-core').sourceSets.test.output
26+
compile "org.openjdk.jmh:jmh-core:1.21"
27+
}

benchmarks/src/jmh/kotlin/benchmarks/ChannelCopyBenchmark.kt

Lines changed: 0 additions & 329 deletions
This file was deleted.

benchmarks/src/jmh/kotlin/benchmarks/ForkJoinBenchmark.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,4 @@ private fun compute(coefficients: LongArray, start: Int, end: Int): Double {
154154
}
155155

156156
return result
157-
}
158-
159-
160-
fun main(args: Array<String>) {
161-
// Hand-rollled test
162-
val arr = LongArray(BATCH_SIZE * 8) { ThreadLocalRandom.current().nextLong(0, 100) }
163-
164-
println(ForkJoinPool.commonPool().submit(ForkJoinBenchmark.Task(arr, 0, arr.size)).join())
165-
println(ForkJoinBenchmark.RecursiveAction(arr, 0, arr.size).invoke())
166-
}
157+
}

0 commit comments

Comments
 (0)