Skip to main content

Measures program speed

Project description

Optimization Library

The optimization library measures the general speed of a program based on the last run.

alt text

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(variance=2.5, 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-1.0.1.tar.gz (2.5 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-1.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optimization-lib-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 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-1.0.1.tar.gz
Algorithm Hash digest
SHA256 54b24af49de88cf39c19bdd1855340fd24f899395dc75b917ce225ef9b51ef56
MD5 482c86506a323d0aff49726361ef0868
BLAKE2b-256 dd3b7bdcb6d49e85abbe417b7871428e5ebd7748894987054ea3b77a9658eb28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optimization_lib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58e295a546e72daaa083e36e7573a974f4a0a6ea40368637edbcb04b48c8f0d7
MD5 7b85b9c7d5344ce5205cad7edfd06b8f
BLAKE2b-256 d3d8c9882f5e45daf80492e2b0e04b61029750d0b50ea52e69ddb85069f2d971

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