BSD Ports

sysutils/py-about_time 4.2.2 OpenBSD

measure timing and throughput of code blocks

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Port added
Last update
Commit
718622ec0f
Categories
sysutils, devel, lang/python

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.

Install

Binary package:

pkg_add py3-about_time

From the ports tree:

cd /usr/ports/sysutils/py-about_time && make install

Dependencies

Build dependencies 5
Run dependencies 1
Required by 1

Commit history 1

DateCommitCreditsLog message
718622ec0f tb import sysutils/py-about_time, ok sthen
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.