Skip to main content

Measures program speed

Project description

Optimization Library

The optimization library measures the general speed of a program.

Example Usage:

First, import the library:

import OptimizationLibrary 

Next, the library needs to be initialized:

opt = OptimizationLibrary()

Finally, we can start and stop the timer:

opt.start_timer()
opt.end_timer()

Example File

import optimization
def test():
    opt = optimization.OptimizationLibrary() 
    opt.start_timer()
    your_function()
    opt.end_timer()
if __name__ == '__main__':
    test()

Additional Notes:

This is a developer tool.
The library has a small performance window (to account for natural program variance).
The library can also be initialized with an optional parameter to show performance increases/decreases visually:

opt = optimization.OptimizationLibrary(color=True) 

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

optimization-lib-0.0.5.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optimization_lib-0.0.5-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file optimization-lib-0.0.5.tar.gz.

File metadata

  • Download URL: optimization-lib-0.0.5.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for optimization-lib-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7d7fc507bfdd20cdf9f334337fae1884fdf66c0c75bcd63859a3056c2004bfe6
MD5 676b67acb9f6a3878bcd398cff7e06d0
BLAKE2b-256 95891ad356850723b5f2e1e41b68aa0ec62096f0bb9bc8756562f6c595d97583

See more details on using hashes here.

File details

Details for the file optimization_lib-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: optimization_lib-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for optimization_lib-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 77e341845d1b76083bfaa2b4c3064d9f4794002bffca9772a6ccdb24d68fa87d
MD5 53f5b97ab337c8e8ca64f03979ed2311
BLAKE2b-256 27518a253af9f06686cf45a512f744a244ea80fa07af7f38cbb64f186d3c6775

See more details on using hashes here.

Supported by

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