HttpArena

Kotlin web framework benchmarks: performance comparison

The fastest Kotlin web framework in HttpArena is ktor-tuned, with a composite of 2873 on HTTP/1.1 — 36 of 114 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry. The leading Kotlin HTTP engine is edixoi-kt, 1 of 46 in its own league. The leading experimental Kotlin framework is ktron, 2 of 32 in its own league.

Compare any two Kotlin entries profile by profile →

Every Kotlin entry in the benchmark, compared on the composite score of each family, one table per league. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 1,000, and scales the sum by the entry's completeness factor. Frameworks, engines, experimental entries and infrastructure are separate leagues: each is normalized against its own leader, and they do not all count the same profiles, so a composite compares with the others in its table and with nothing outside it. Rank in its league is the entry's place across all languages; rank among Kotlin narrows the same field to this language. Both link through to the board view they were taken in. How the score works.

To set two entries from different leagues against each other, compare them head to head: that table lines up every test both of them ran.

Composite scores compare directly across every row of a table. Ranks do not always share a field: a tuned entry has no place in the standard-only ranking, so its rank is taken from the field that includes tuned entries and counts more of them.

HTTP/1.1

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
ktor-tunedFlagship tuned287336 of 1141 of 5
ktorFlagship231631 of 881 of 4
netonEmerging148350 of 882 of 4
http4kFlagship118864 of 883 of 4
kliteEmerging17286 of 884 of 4

Engines

EngineTypeCompositeRank in its leagueRank among Kotlin
edixoi-ktEngine57891 of 461 of 3
kronEngine57084 of 462 of 3
kron-nativeEngine55385 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
ktronExperimental64362 of 321 of 5
ktor-kronosExperimental437512 of 322 of 5
genhttp-kt-nettyExperimental422413 of 323 of 5
genhttp-ktExperimental278023 of 324 of 5
ktor-kronos-nativeExperimental215625 of 325 of 5

HTTP/2

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
ktor-tunedFlagship tuned59027 of 451 of 3
netonEmerging51021 of 341 of 2
ktorFlagship36928 of 342 of 2

HTTP/3

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
ktorFlagship22811 of 171 of 2
ktor-tunedFlagship tuned20016 of 222 of 2

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
ktor-tunedFlagship tuned50233 of 411 of 2
ktorFlagship37027 of 312 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
genhttp-kt-nettyExperimental211214 of 231 of 4
genhttp-ktExperimental132018 of 232 of 4
ktor-kronosExperimental102820 of 233 of 4
ktor-kronos-nativeExperimental21022 of 234 of 4

Database

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Kotlin
ktorFlagship3528 of 81 of 2
ktor-tunedFlagship tuned16711 of 112 of 2

Questions

What is the fastest Kotlin web framework?

ktor-tuned leads the Kotlin web frameworks in HttpArena with a composite score of 2873 on HTTP/1.1, measured over Alpha Round. The composite sums a normalized score across the profiles of a family, where the leader of each profile scores 1,000. Against every language, ktor-tuned ranks 36 of 114 in its league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.

What is the fastest Kotlin HTTP engine?

edixoi-kt leads the Kotlin HTTP engines in HttpArena with a composite score of 5789 on HTTP/1.1, measured over Alpha Round. Against every language, edixoi-kt ranks 1 of 46 in its league.

What is the fastest experimental Kotlin framework?

ktron leads the experimental Kotlin frameworks in HttpArena with a composite score of 6436 on HTTP/1.1, measured over Alpha Round. Against every language, ktron ranks 2 of 32 in its league.

Why are Kotlin entries ranked in separate leagues?

HttpArena ranks web frameworks, HTTP engines, and experimental frameworks apart. Each league is normalized against its own leader, and the leagues do not all count the same profiles - engines are not scored on JSON Compressed, for one. A composite from one league is therefore not on the same scale as a composite from another, and the higher number across two leagues is not the faster server. To set two entries from different leagues against each other, use the Kotlin head-to-head comparison, which lines up every test both of them ran.

What is the fastest Kotlin HTTP/2 server?

ktor-tuned, with a composite of 590 on HTTP/2 and 27 of 45 against all languages in its league.

What is the fastest Kotlin HTTP/3 server?

ktor, with a composite of 228 on HTTP/3 and 11 of 17 against all languages in its league.

What is the fastest Kotlin WebSocket server?

Among web frameworks, ktor-tuned (composite 502, 33 of 41 in that league); among experimental frameworks, genhttp-kt-netty (composite 2112, 14 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Kotlin database-backed server?

ktor, with a composite of 352 on Database and 8 of 8 against all languages in its league.

How many Kotlin web frameworks are benchmarked?

13 Kotlin entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, WebSocket, Database. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.

Is Kotlin fast for web servers?

The leading Kotlin web framework, ktor-tuned, places 36 of 114 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Kotlin at its best rather than for Kotlin in general. The tables below show the spread across all 13 entries.

Every Kotlin entry

Other languages

Assembly · C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Goose · Haskell · Java · JS · Julia · Koru · Lua · Luau · Mojo · OCaml · Perl · PHP · Python · Ruby · Rust · Scala · Sober · Swift · TS · V · Valk · Zig

Results updated · Alpha Round · Compare two Kotlin entries · All languages · Open the leaderboard