Skip to content

Commit 3ad8b84

Browse files
committed
View and compare the results at https://www.techempower.com/benchmarks/#section=test&runid=e4388834-e02e-45e6-92ed-929bfe264a56 and see that vertx-web-kotlinx-exposed-r2dbc-postgresql-separate-pool-size-8 wins
1 parent 7b1c221 commit 3ad8b84

6 files changed

+7
-231
lines changed

frameworks/Kotlin/vertx-web-kotlinx/vertx-web-kotlinx-exposed-r2dbc-postgresql-separate-pool-size-1.dockerfile

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

frameworks/Kotlin/vertx-web-kotlinx/vertx-web-kotlinx-exposed-r2dbc-postgresql-separate-pool-size-8-optimized.dockerfile

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

frameworks/Kotlin/vertx-web-kotlinx/vertx-web-kotlinx-exposed-r2dbc-postgresql-separate-pool-size-8.dockerfile

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

frameworks/Kotlin/vertx-web-kotlinx/vertx-web-kotlinx-exposed-r2dbc-postgresql-shared-pool-size-512-optimized.dockerfile

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

frameworks/Kotlin/vertx-web-kotlinx/with-db/exposed-r2dbc/src/main/kotlin/Main.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import database.r2dbcConnectPool
22

33
suspend fun main(args: Array<String>) {
44
// Parse CLI arguments
5-
val isSharedPool = args.getOrNull(0)?.toBooleanStrictOrNull() ?: true
6-
val poolSize = args.getOrNull(1)?.toIntOrNull() ?: 512
7-
val useOptimizedConfig = args.getOrNull(2)?.toBooleanStrictOrNull() ?: true
5+
val isSharedPool = args.getOrNull(0)?.toBooleanStrictOrNull() ?: false
6+
val poolSize = args.getOrNull(1)?.toIntOrNull() ?: 8
7+
val useOptimizedConfig = args.getOrNull(2)?.toBooleanStrictOrNull() ?: false
88

99
val benchmarkName = buildString {
1010
append("Vert.x-Web Kotlinx with Exposed R2DBC (and PostgreSQL)")

frameworks/Kotlin/vertx-web-kotlinx/with-db/r2dbc/src/main/kotlin/Main.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import database.connectionPoolOptimized
22
import database.connectionPoolOriginal
33
import io.r2dbc.spi.ConnectionFactory
4-
import kotlinx.coroutines.reactive.awaitSingle
54

65
suspend fun main(args: Array<String>) {
76
// Parse CLI arguments
8-
val isSharedPool = args.getOrNull(0)?.toBooleanStrictOrNull() ?: true
9-
val poolSize = args.getOrNull(1)?.toIntOrNull() ?: 512
10-
val useOptimizedConfig = args.getOrNull(2)?.toBooleanStrictOrNull() ?: true
7+
val isSharedPool = args.getOrNull(0)?.toBooleanStrictOrNull() ?: false
8+
val poolSize = args.getOrNull(1)?.toIntOrNull()
9+
?: 8 // TODO `1` might produce equivalent results because there is no transaction in this portion compared to `exposed-r2dbc`.
10+
val useOptimizedConfig = args.getOrNull(2)?.toBooleanStrictOrNull() ?: false
1111

1212
val benchmarkName = buildString {
1313
append("Vert.x-Web Kotlinx with R2DBC (and PostgreSQL)")

0 commit comments

Comments
 (0)