OpenBSD ports

The sysutils/py-about_time port

py3-about_time-4.2.2 – measure timing and throughput of code blocks

Description

Did you ever need to measure the duration of an operation? Yeah, this is easy.
But how to:

- measure the duration of two or more blocks at the same time,
  including the whole duration?
- instrument a code to cleanly retrieve durations in one line,
  to log or send to time series databases?
- easily see human friendly durations in seconds, milliseconds, etc?
- easily see human friendly counts with SI prefixes like k, M, G, T, etc?
- measure the actual throughput of a block? (this is way harder, since it
  needs to measure both duration and number of iterations)
- easily see human friendly throughputs in "/second", "/minute", "/hour"
  or even "/day", including SI prefixes?

about-time solves these and many more.

WWW: https://pypi.org/project/about_time
Only for arches
aarch64 aarch64 alpha amd64 amd64 arm arm hppa i386 i386 mips64 mips64 mips64el mips64el powerpc powerpc powerpc64 powerpc64 riscv64 riscv64 sparc64
Categories:
devel lang/python sysutils

Library dependencies

Build dependencies

Run dependencies