Fix benchmark aggregation on different measured builds number

When scenarios have different iterations number, resulted csv file will
contain empty entries for some of the measurements. Aggregation should
ignore such entries.
This commit is contained in:
Yahor Berdnikau
2022-10-12 18:00:44 +02:00
parent ed25939e58
commit 53e660c138
@@ -376,7 +376,7 @@ abstract class BenchmarkTemplate(
)
columnName.startsWith("measured build") -> DataColumn.createValueColumn(
columnName,
rowToColumn(columnName) { it.toString().toInt() }
rowToColumn(columnName) { it.toString().toIntOrNull() }
)
else -> throw IllegalArgumentException("Unknown column name: $columnName")
}