legate.util.benchmark.BenchmarkLog.log#
- BenchmarkLog.log(**kwargs: Any) None#
Add a row to a benchmark table created in
benchmark_log().The arguments should be the columns specified in
benchmark_log(), for example:from legate.util.benchmark import benchmark_log with benchmark_log("mybench", columns=["time", "size"]) as b: b.log(time=1.0, size=1000)
If your columns are not valid identifiers, use unpacking:
from legate.util.benchmark import benchmark_log time="Time (seconds)" size="Florps" with benchmark_log("mybench", columns=[time, size]) as b: b.log(**{time: 1.0, size: 1000})