walltime

numcodecs_observers.walltime

This module defines the WalltimeObserver class, which measures the walltime it takes to encode / decode.

Classes:

  • WalltimeObserver

    Observer that measures the walltime it takes to encode / decode.

WalltimeObserver

WalltimeObserver()

Bases: CodecObserver

Observer that measures the walltime it takes to encode / decode.

The list of measurements are exposed in the encode_times and decode_times properties.

encode_times property

encode_times: Mapping[HashableCodec, list[float]]

Per-codec-instance measurements of the walltime it takes to encode.

decode_times property

decode_times: Mapping[HashableCodec, list[float]]

Per-codec-instance measurements of the walltime it takes to decode.