{"id":19268520,"url":"https://github.com/arnaudsm/bigot","last_synced_at":"2025-04-21T19:33:27.519Z","repository":{"id":57414972,"uuid":"298110396","full_name":"arnaudsm/bigot","owner":"arnaudsm","description":"Benchmarking library with Space and Time Complexity estimation","archived":false,"fork":false,"pushed_at":"2021-01-26T18:56:27.000Z","size":244,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T08:17:40.517Z","etag":null,"topics":["benchmarking","complexity-analysis","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnaudsm.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-23T22:36:32.000Z","updated_at":"2021-02-03T06:37:02.000Z","dependencies_parsed_at":"2022-08-30T05:41:35.147Z","dependency_job_id":null,"html_url":"https://github.com/arnaudsm/bigot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Fbigot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Fbigot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Fbigot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Fbigot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnaudsm","download_url":"https://codeload.github.com/arnaudsm/bigot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250120222,"owners_count":21378155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmarking","complexity-analysis","python"],"created_at":"2024-11-09T20:16:34.286Z","updated_at":"2025-04-21T19:33:27.206Z","avatar_url":"https://github.com/arnaudsm.png","language":"Python","readme":"![Example complexity graph](https://raw.githubusercontent.com/arnaudsm/bigot/master/images/graph.png)\n# Bigot\nBenchmarking library with Space and Time Complexity estimation.  \n*Pull requests are welcome !*\n\n## Installation\n`pip install bigot`\n\n## Usage\n### Provide a benchmark function with a single dimension parameter\n```python\ndef on(n):\n    x = 10000000*\"-\"*int(n)\n    sleep(0.001*n)\n    \nimport bigot\nprint(\"Function has a space complexity of\", bigot.Space(on2),\n      \"and a time complexity of\", bigot.Time(on2))\n```\n```\nFunction has a space complexity of O(n^2) and a time complexity of O(n^2)\n```\n\n### You can test our fancy options. See docstrings for reference.\n```python\nbench = bigot.Time(\n    on2,\n    plot=True,\n    duration=1,\n    verbose=True,\n    name=\"My fancy function\"\n)\n```\n\n### And check the number of iterations, useful when comparing functions\n```python\nprint(bench.iterations, \"iterations in\", bench.duration, \"seconds\")\n```\n```\n8 iterations in 8 seconds\n```\n### You can also compare multiple functions\n```python\ndef on2(n):\n    x = 10000000*\"-\"*int(n**2)\n    sleep(0.001*n**2)\n\nprint(bigot.Compare([on, on2]).space())\n```\n```\n  Name  Duration  Iterations Space complexity\n0   On       1.0        49.0             O(n)\n1  On2       1.0         8.0           O(n^2)\n```\n\n## Testing\n`pytest .`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnaudsm%2Fbigot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnaudsm%2Fbigot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnaudsm%2Fbigot/lists"}