Skip to content

Commit 554406c

Browse files
committed
Switch to Netty server for Ktor benchmark.
Replaced CIO with Netty as the server engine for the Kotlin Ktor benchmark. Updated the build configuration to include the Netty dependency and removed the CIO dependency.
1 parent b73ccfd commit 554406c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks/kotlin-ktor/src/main/kotlin/org/renaissance/kotlin/ktor/KtorRenaissanceBenchmark.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class KtorRenaissanceBenchmark() : Benchmark {
8282
val randomSeed = context.parameter("random_seed").toPositiveInteger()
8383

8484
application = ChatApplication(numberOfChats)
85-
server = embeddedServer(io.ktor.server.cio.CIO, host = "localhost", port = port) {
85+
server = embeddedServer(io.ktor.server.netty.Netty, host = "localhost", port = port) {
8686
application.apply {
8787
main()
8888
}

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ lazy val kotlinKtorBenchmarks = (project in file("benchmarks/kotlin-ktor"))
568568
kotlincJvmTarget := "11",
569569
libraryDependencies ++= Seq(
570570
"io.ktor" % "ktor-server-core-jvm" % ktorVersion,
571-
"io.ktor" % "ktor-server-cio-jvm" % ktorVersion,
571+
"io.ktor" % "ktor-server-netty-jvm" % ktorVersion,
572572
"io.ktor" % "ktor-server-tests-jvm" % ktorVersion,
573573
"io.ktor" % "ktor-server-call-logging" % ktorVersion,
574574
"io.ktor" % "ktor-serialization-kotlinx-json-jvm" % ktorVersion,

0 commit comments

Comments
 (0)