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.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

dsbench-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file dsbench-0.1.1.tar.gz.

File metadata

  • Download URL: dsbench-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/6.7.0-zen3-1-zen

File hashes

Hashes for dsbench-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fc3f7611c2a013b05c0fcdaa19e87af45e161167113ed5bacb0ecf3649e68b5
MD5 8aa70d5e26d973d55c910085732357dc
BLAKE2b-256 53ad0fc2a3b50e523aefe5824b25a6b0b42ac7e1a12e76142acb418becb21e5e

See more details on using hashes here.

File details

Details for the file dsbench-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dsbench-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/6.7.0-zen3-1-zen

File hashes

Hashes for dsbench-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e49717b3558d9a8686422ff238e90d64c69d66faa9b7a970aefffab1b7655a5
MD5 3f68bb77d7e127facde3a801d7b53466
BLAKE2b-256 cf7016fd0acac1da1f89f2cf414d3a380e5de8cfd557c224c042fe1c54b16d5e

See more details on using hashes here.

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