Skip to content

Commit 30c9830

Browse files
committed
Update dependencies and change settings
1 parent c6dcb56 commit 30c9830

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

frameworks/Kotlin/hexagon/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11

22
plugins {
3-
id "org.jetbrains.kotlin.jvm" version "2.0.10" apply false
4-
id "org.graalvm.buildtools.native" version "0.10.2" apply false
3+
id "org.jetbrains.kotlin.jvm" version "2.0.20" apply false
4+
id "org.graalvm.buildtools.native" version "0.10.3" apply false
55
}
66

77
version = "1.0.0"
88
description = "TFB benchmark"
99
group = "com.hexagonkt"
1010

1111
ext {
12-
hexagonVersion = "3.6.2"
13-
jettyVersion = "12.0.12"
14-
nettyVersion = "4.1.112.Final"
12+
hexagonVersion = "3.7.0"
13+
jettyVersion = "12.0.13"
14+
nettyVersion = "4.1.113.Final"
1515

1616
hikariVersion = "5.1.0"
17-
postgresqlVersion = "42.7.3"
18-
vertxVersion = "4.5.9"
17+
postgresqlVersion = "42.7.4"
18+
vertxVersion = "4.5.10"
1919
cache2kVersion = "2.6.1.Final"
2020

2121
applicationClass = "com.hexagonkt.BenchmarkKt"
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
package com.hexagonkt
22

3+
import com.hexagonkt.core.Jvm.systemSettingOrNull
34
import com.hexagonkt.core.media.TEXT_HTML
45
import com.hexagonkt.core.urlOf
56
import com.hexagonkt.http.server.helidon.HelidonServerAdapter
67
import com.hexagonkt.store.BenchmarkPgClientStore
78
import com.hexagonkt.templates.jte.JteAdapter
9+
import java.time.Duration
810

911
fun main() {
10-
val settings = Settings()
1112
val store = BenchmarkPgClientStore("postgresql")
1213
val templateEngine = JteAdapter(TEXT_HTML, precompiled = true)
1314
val templateUrl = urlOf("classpath:fortunes.jte")
14-
val engine = HelidonServerAdapter()
15+
val engine = HelidonServerAdapter(
16+
backlog = systemSettingOrNull("backlog") ?: (8 * 1024),
17+
writeQueueLength = systemSettingOrNull("writeQueueLength") ?: (8 * 1024),
18+
readTimeout = Duration.parse(systemSettingOrNull("readTimeout") ?: "PT0S"),
19+
connectTimeout = Duration.parse(systemSettingOrNull("connectTimeout") ?: "PT0S"),
20+
tcpNoDelay = systemSettingOrNull<Boolean>("tcpNoDelay") ?: true,
21+
receiveLog = systemSettingOrNull<Boolean>("receiveLog") ?: false,
22+
sendLog = systemSettingOrNull<Boolean>("sendLog") ?: false,
23+
validatePath = systemSettingOrNull<Boolean>("validatePath") ?: false,
24+
validateRequestHeaders = systemSettingOrNull<Boolean>("validateRequestHeaders") ?: false,
25+
validateResponseHeaders = systemSettingOrNull<Boolean>("validateResponseHeaders") ?: false,
26+
)
1527

16-
val benchmark = Benchmark(engine, store, templateEngine, templateUrl, settings)
28+
val benchmark = Benchmark(engine, store, templateEngine, templateUrl, Settings())
1729
benchmark.server.start()
1830
}

0 commit comments

Comments
 (0)