Skip to main content

Benchmarking Suite

Project description

Bencher

Benchmarking system for python 3

Description

This is a little Benchmarking module for Python 3. It provides a easy to use Benchmarking class and a statistics class for further analysis. It can save the measured benchmarks into a centralized folder in the home/user directory. This works crossplatform, I currently tested it on Windows and Debian, but it should work on most linux distributions and on OSX as well.

Install

python setup.py install

Usage

from bencher import Bencher
benchmark = Bencher("benchmarkcase")
benchmark.start()
# Productive coding
######
#
benchmark.stop()

# To get the measured time
time_needed = benchmark.get_time()

# To print a benchmark hint
print(benchmark)

# Save current benchmark for later analysing via the bencher.Statter class
benchmark.save()

# Reset benchmark
benchmark.reset()

Usage statter

from bencher import Statter

statter = Statter("benchmarkcase")

# Get sum
statter.sum()

# Get average
statter.avg()

# Get count
statter.count()

I will add more features, when I need them or someone requests them.

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 SimpleBencher, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size SimpleBencher-0.6.0-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size SimpleBencher-0.6.0.tar.gz (2.5 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