Skip to main content

Lightweight benchmarking decorator.

Project description

performer

Lightweight benchmarking decorator.

Installation

$ pip3 install performer

Usage

All benchmark results are output after the program ends.
The benchmark decorator does not affect the function output.

from performer import benchmark

@benchmark(1000)
def sum_range(n):
    return sum(range(n))

@benchmark(100)
def hello():
    return "Hello"

print(sum_range(100))
print(hello())

Project details


Download files

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

Files for performer, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size performer-0.0.1.zip (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page