Skip to content

Commit 5984611

Browse files
author
luigi liu
committed
Merge branch 'benchmark-performance-2026-fixed-version' of github.com:aws/aws-sdk-kotlin into benchmark-performance-2026
2 parents 7c20110 + 9c162b8 commit 5984611

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

benchmarks/serde-benchmarks/src/main/kotlin/aws/sdk/kotlin/benchmarks/serde/BenchmarkRunner.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@ import aws.sdk.kotlin.benchmarks.serde.smithyrpcv2cbor.registerBenchmarks as reg
1717
* Each projection's [registerBenchmarks] function is generated by codegen and
1818
* provides direct references to benchmark classes — no runtime reflection needed.
1919
*/
20-
fun main() = runBlocking {
20+
21+
private fun registerAllProtocols() {
2122
registerAwsRestJson()
2223
registerAwsJsonRpc10()
2324
registerSmithyRpcV2Cbor()
2425
registerAwsRestXml()
2526
registerAwsQuery()
27+
}
28+
29+
fun main() = runBlocking {
30+
registerAllProtocols()
2631

2732
val allResults = mutableListOf<BenchmarkResult>()
2833

settings.gradle.kts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,18 @@ include(":hll")
5858
include(":hll:hll-codegen")
5959
include(":hll:hll-mapping-core")
6060
include(":services")
61-
if (providers.gradleProperty("includeBenchmarks").orNull?.toBoolean() == true) {
62-
val endpointBenchmarkServices = listOf("s3", "lambda")
63-
if (endpointBenchmarkServices.all { it.isBootstrappedService }) {
64-
include(":benchmarks:endpoint-resolution")
65-
} else {
66-
val missing = endpointBenchmarkServices.filterNot { it.isBootstrappedService }
67-
logger.warn("Skipping :benchmarks:endpoint-resolution because these service(s) are not bootstrapped: $missing")
68-
}
61+
val endpointBenchmarkServices = listOf("s3", "lambda")
62+
if (endpointBenchmarkServices.all { it.isBootstrappedService }) {
63+
include(":benchmarks:endpoint-resolution")
64+
} else {
65+
val missing = endpointBenchmarkServices.filterNot { it.isBootstrappedService }
66+
logger.warn("Skipping :benchmarks:endpoint-resolution because these service(s) are not bootstrapped: $missing")
6967
}
70-
if (providers.gradleProperty("includeBenchmarks").orNull?.toBoolean() == true) {
68+
69+
if (providers.gradleProperty("benchmarkModelsDir").orNull != null) {
7170
include(":benchmarks:serde-benchmarks")
71+
} else {
72+
logger.warn("Skipping :benchmarks:serde-benchmarks because benchmarkModelsDir is not set")
7273
}
7374
include(":tests")
7475
include(":tests:codegen")

0 commit comments

Comments
 (0)