odc.stac.bench.BenchmarkContext
- class odc.stac.bench.BenchmarkContext(cluster_info, npix, nbytes, dtype, shape, chunks, crs, transform, scenario='', temporal_id='', method='undefined', extras=<factory>)[source]
Benchmark Context Metadata.
Normalized representation of the task being benchmarked and the environment it is benchmarked in.
- __init__(cluster_info, npix, nbytes, dtype, shape, chunks, crs, transform, scenario='', temporal_id='', method='undefined', extras=<factory>)
Methods
__init__(cluster_info, npix, nbytes, dtype, ...)render_timing_info(times[, col_width])Render textual representation of timing result.
render_txt([col_width])Render textual representation for human consumption.
to_pandas_dict()Extract parts one would need for analysis of results.
Attributes
chunk_signatureRender textual representation of chunk shapes.
data_signatureRender textual representation of data shape and type.
methodSome human name for method, (stackstac, odc-stac, rio-xarray)
resolutionExtract resolution.
scenarioSome human name for this benchmark data
temporal_idTime period covered by data in human readable form
cluster_infoclient.scheduler_info().copy()
nworkersNumber of workers in the cluster
nthreadsNumber of threads in the cluster across all workers
total_ramTotal RAM across all workers of the cluster
npixTotal number of output pixels across all bands/timeslices
nbytesTotal number of output bytes across bands/timeslices
dtypeData type of a pixel, assumed to be the same across bands
shapeNormalized shape in time,band,y,x order
chunksNormalized chunk size in time,band,y,x order
crsProjection used for output
transformLinear mapping from pixel coordinates to CRS coordinates
extrasAny other parameters to capture