Migration to normalized data
This commit is contained in:
@@ -98,7 +98,9 @@ open class BuildRegister : DefaultTask() {
|
||||
|
||||
// Get summary information.
|
||||
val output = arrayOf("$analyzer", "summary", "-exec-samples", "all", "-compile", "samples",
|
||||
"-compile-samples", "HelloWorld,Videoplayer", "-codesize-samples", "all", "$currentBenchmarksReportFile")
|
||||
"-compile-samples", "HelloWorld,Videoplayer", "-codesize-samples", "all",
|
||||
"-exec-normalize", "bintray:goldenResults.csv",
|
||||
"-codesize-normalize", "bintray:goldenResults.csv", "$currentBenchmarksReportFile")
|
||||
.runCommand()
|
||||
// Postprocess information.
|
||||
val buildInfoParts = output.split(',')
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4>Execution time</h4>
|
||||
<h4>Normalized execution time</h4>
|
||||
<div id="exec_chart" class="chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -88,7 +88,7 @@
|
||||
<p style="margin-top: 40px">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4>Code size</h4>
|
||||
<h4>Normalized code size</h4>
|
||||
<div id="codesize_chart" class="chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -234,6 +234,12 @@ fun main(args: Array<String>) {
|
||||
val buildsNumbersUrl = "$serverUrl/buildsNumbers/${parameters["target"]}"
|
||||
val buildsNumbers: Array<String> = JSON.parse(sendGetRequest(buildsNumbersUrl))
|
||||
|
||||
// Add release branches to selector.
|
||||
releaseBranches.forEach {
|
||||
val option = Option(it, it)
|
||||
js("$('#inputGroupBranch')").append(js("$(option)"))
|
||||
}
|
||||
|
||||
// Change inputs values connected with parameters and add events listeners.
|
||||
document.querySelector("#inputGroupTarget [value=\"${parameters["target"]}\"]")?.setAttribute("selected", "true")
|
||||
document.querySelector("#inputGroupBuildType [value=\"${parameters["type"]}\"]")?.setAttribute("selected", "true")
|
||||
@@ -266,12 +272,6 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
})
|
||||
|
||||
// Add release branches to selector.
|
||||
releaseBranches.forEach {
|
||||
val option = Option(it, it)
|
||||
js("$('#inputGroupBranch')").append(js("$(option)"))
|
||||
}
|
||||
|
||||
val autocompleteParameters: dynamic = object{}
|
||||
autocompleteParameters["lookup"] = buildsNumbers
|
||||
autocompleteParameters["onSelect"] = { suggestion ->
|
||||
@@ -308,7 +308,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
separateValues(it.executionTime, executionTime) { value -> value.toDouble() }
|
||||
separateValues(it.compileTime, compileTime) { value -> value.toDouble() / 1000 }
|
||||
separateValues(it.codeSize, codeSize) { value -> value.toDouble() / 1024.0 }
|
||||
separateValues(it.codeSize, codeSize) { value -> value.toDouble() }
|
||||
bundleSize.add(it.bundleSize?.toInt()?. let { it / 1024 / 1024 })
|
||||
}
|
||||
|
||||
@@ -316,11 +316,11 @@ fun main(args: Array<String>) {
|
||||
|
||||
// Draw charts.
|
||||
val execChart = Chartist.Line("#exec_chart", getChartData(labels, executionTime.values),
|
||||
getChartOptions(executionTime.keys.toTypedArray(), "Time, microseconds"))
|
||||
getChartOptions(executionTime.keys.toTypedArray(), "Normalized time"))
|
||||
val compileChart = Chartist.Line("#compile_chart", getChartData(labels, compileTime.values),
|
||||
getChartOptions(compileTime.keys.toTypedArray(), "Time, milliseconds"))
|
||||
val codeSizeChart = Chartist.Line("#codesize_chart", getChartData(labels, codeSize.values, sizeClassName),
|
||||
getChartOptions(codeSize.keys.toTypedArray(), "Size, KB", arrayOf("ct-series-2")))
|
||||
getChartOptions(codeSize.keys.toTypedArray(), "Normalized size", arrayOf("ct-series-2")))
|
||||
val bundleSizeChart = Chartist.Line("#bundlesize_chart", getChartData(labels, listOf(bundleSize), sizeClassName),
|
||||
getChartOptions(arrayOf("Bundle size"), "Size, MB", arrayOf("ct-series-2")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user