File tree Expand file tree Collapse file tree
benchmarks/serde-benchmarks/src/main/kotlin/aws/sdk/kotlin/benchmarks/serde Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -58,17 +58,18 @@ include(":hll")
5858include(" :hll:hll-codegen" )
5959include(" :hll:hll-mapping-core" )
6060include(" :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}
7374include(" :tests" )
7475include(" :tests:codegen" )
You can’t perform that action at this time.
0 commit comments