Added input, hardware fields to data
This commit is contained in:
@@ -110,7 +110,7 @@ object CLI {
|
||||
data class FileData<T>(val file: InputStream, val parse: (String) -> T?) : IData<T> {
|
||||
override fun toList(): List<T> {
|
||||
val raw = file.bufferedReader().use { it.readText() }.split(',')
|
||||
|
||||
|
||||
val parsed = ArrayList<T>(raw.size)
|
||||
val errors = mutableListOf<String>()
|
||||
raw.forEach {
|
||||
@@ -201,6 +201,8 @@ object CLI {
|
||||
option("--min", "--m", "--minutes", help = "Set the time unit to minutes").flag().convert { TimeUnit.MINUTES },
|
||||
option("--h", "--hour", help = "Set the time unit to hours").flag().convert { TimeUnit.HOURS }
|
||||
).single()
|
||||
val input by option("--input", help = "Set the input used to benchmark")
|
||||
val hardware by option("--hardware", "--hw", help = "Set the hardware on which the benchmark was run")
|
||||
|
||||
override fun run() = ProjectHandlers.newData(parent.finder, label, warmup, measurement, unit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user