Skip to main content

Estimate time and space complexity of Python functions using static analysis and runtime profiling.

Project description

complexity-estimator

Estimate (not prove) Big-O time & space complexity of Python functions.

Features

  • Static hints (loops, recursion)
  • Runtime profiling (time + peak memory via tracemalloc)
  • Model fit to {O(1), O(log n), O(n), O(n log n), O(n^2), O(n^3)}
  • Decorator @analyze and CLI complexity-analyze

Quick Start

pip install complexity-estimator

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

complexity_estimator_dimple-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

complexity_estimator_dimple-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file complexity_estimator_dimple-0.1.2.tar.gz.

File metadata

File hashes

Hashes for complexity_estimator_dimple-0.1.2.tar.gz
Algorithm Hash digest
SHA256 de0194c25238aedc6080a8aa9ad2b19c824bcb4b146d7979c118b679b3bd97bd
MD5 71757a9cd730d01c3bc9601313ab4fd2
BLAKE2b-256 160383d28eeb5452f334987630e468ed3720c7e9bac3b00f56ee56c2d2d47db5

See more details on using hashes here.

File details

Details for the file complexity_estimator_dimple-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for complexity_estimator_dimple-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ac9bb25c5eae55816ae185d0c11a50827c271bd1b58de699deb26e08baaf287
MD5 c9fd60d53024451953def6f87b0c8e33
BLAKE2b-256 b9983dbdb0b0027ebc2852463227fc719cb8b7b46fe474d22206e85279156a49

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