[K/N] Added possibility to run only base part of benchmarks

This commit is contained in:
Elena Lepilkina
2022-04-01 18:30:24 +03:00
committed by Pavel Punegov
parent b79f5a445f
commit 087f7e3b31
13 changed files with 131 additions and 116 deletions
@@ -64,7 +64,7 @@ class AWSNetworkConnector : NetworkConnector() {
override fun <T : String?> sendBaseRequest(method: RequestMethod, path: String, user: String?, password: String?,
acceptJsonContentType: Boolean, body: String?,
errorHandler: (url: String, response: dynamic) -> Nothing?): Promise<T> {
val useEnvironmentCredentials = true // For easy test on localhost change to false.
val useEnvironmentCredentials = false
val AWSEndpoint = AWSInstance.Endpoint(AWSDomain)
var request = AWSInstance.HttpRequest(AWSEndpoint, AWSRegion)
request.method = method.toString()
@@ -190,7 +190,7 @@ fun getDatesComponents() = "${beforeDate?.let {"&before=${encodeURIComponent(it)
"${afterDate?.let {"&after=${encodeURIComponent(it)}"} ?: ""}"
fun main(args: Array<String>) {
val serverUrl = "https://kotlin-native-perf-summary.labs.jb.gg" // use "http://localhost:3000" for local debug.
val serverUrl = "http://localhost:3000"
val zoomRatio = 2
// Get parameters from request.