[K/N][perf] Small fixes for release builds and some type of benchmarks reports

This commit is contained in:
Elena Lepilkina
2022-03-30 20:02:49 +03:00
committed by Space
parent 053ddb51ce
commit cb0acaa469
3 changed files with 5 additions and 3 deletions
@@ -207,7 +207,9 @@ internal fun <T> orderedValues(values: List<T>, buildElement: (T) -> CompositeBu
Int.MAX_VALUE
},
{ buildElement(it).first?.let { if (it == "DEV") 0 else 1 } ?: 0 }, // Develop and release builds
{ buildElement(it).second.substringAfterLast("-").substringBefore("(").toDouble() }, // build counter
{ if (buildElement(it).first == "RELEASE")
0
else buildElement(it).second.substringAfterLast("-").substringBefore("(").toDouble() }, // build counter
{ buildElement(it).second.contains("(") } // build suffix
)
)
@@ -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"
val serverUrl = "https://kotlin-native-perf-summary.labs.jb.gg" // use "http://localhost:3000" for local debug.
val zoomRatio = 2
// Get parameters from request.