Skip to content

Commit 9411419

Browse files
committed
Update benchmarks
1 parent 6455310 commit 9411419

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

benchmarks/build.gradle.kts

+7-6
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ tasks.named<Jar>("jmhJar") {
5454
}
5555

5656
dependencies {
57-
compile("org.openjdk.jmh:jmh-core:1.26")
58-
compile("io.projectreactor:reactor-core:${version("reactor")}")
59-
compile("io.reactivex.rxjava2:rxjava:2.1.9")
60-
compile("com.github.akarnokd:rxjava2-extensions:0.20.8")
57+
implementation("org.openjdk.jmh:jmh-core:1.26")
58+
implementation("io.projectreactor:reactor-core:${version("reactor")}")
59+
implementation("io.reactivex.rxjava2:rxjava:2.1.9")
60+
implementation("com.github.akarnokd:rxjava2-extensions:0.20.8")
6161

62-
compile("com.typesafe.akka:akka-actor_2.12:2.5.0")
63-
compile(project(":kotlinx-coroutines-core"))
62+
implementation("com.typesafe.akka:akka-actor_2.12:2.5.0")
63+
implementation(project(":kotlinx-coroutines-core"))
64+
implementation(project(":kotlinx-coroutines-reactive"))
6465

6566
// add jmh dependency on main
6667
"jmhImplementation"(sourceSets.main.get().runtimeClasspath)

benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/SequencePlaysScrabble.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ open class SequencePlaysScrabble : ShakespearePlaysScrabble() {
3030
val bonusForDoubleLetter: (String) -> Int = { word: String ->
3131
toBeMaxed(word)
3232
.map { letterScores[it - 'a'.toInt()] }
33-
.max()!!
33+
.maxOrNull()!!
3434
}
3535

3636
val score3: (String) -> Int = { word: String ->

0 commit comments

Comments
 (0)