Skip to main content

No project description provided

Project description

DSBench

This small library provides a decorator function that benchmarks functions.

dsbench.benchmark(*, name: str, cumulative: bool = False, range_start: int = 0, range_end: int = None) -> Callable

Decorator function for benchmarking other functions.

  • Parameters:
    • name (str) – The name of the benchmark.
    • cumulative (bool , optionals) – Whether to benchmark a function a number of times with different inputs. If the decorated function returns a result, the sum of the total results is displayed. Defaults to False.
    • range_start (int , optional) – The start value of the range for cumulative benchmarking. Defaults to 0.
    • range_end (int , optional) – The end value of the range for cumulative benchmarking. Defaults to the decorated function’s first argument.
  • Returns: The decorated function.
  • Return type: function

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dsbench-0.1.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

dsbench-0.1.0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page