Skip to main content

//clika-runtime/io.clika.modelverse/BenchReport

BenchReport

[common]
class BenchReport

One bench's record (Modelverse.bench), the library's own BenchReport: table, the runtime's columnar frame with one row per (cell, concurrency) in the sweep's order under the columns of BenchColumns (the same frame the command line's bench verb prints as CSV and writes as PREFIX.csv; toCsvString renders it); config, the run's configuration document under the keys of BenchConfigKeys (the model, the device, the cache mode and the knobs, the machine's hardware inventory, the checkpoint's on-disk bytes and the loaded model's resident bytes; what the verb writes as PREFIX.json); profileSummary, the per-op text of a profiled run (empty otherwise); and rows, the table read into typed BenchRows. The table and the document are native objects: close releases them (use {}), and the typed rows stay readable after it.

Properties​

NameSummary
config[common]
val config: Json
errorRowCount[common]
val errorRowCount: Int
The rows whose status is BenchRowStatus.ERROR: the command line exits non-zero when there is one.
profileSummary[common]
val profileSummary: String
rows[common]
val rows: List<BenchRow>
The rows of table, typed, in the sweep's order; read once, on first use.
table[common]
val table: Table

Functions​

NameSummary
close[common]
open fun close()
Release the table and the configuration document; rows already read stay readable. Idempotent.
toCsvString[common]
fun toCsvString(): String
The table as the CSV text the command line's bench verb prints.
toString[common]
open override fun toString(): String