{"id":20635794,"url":"https://github.com/orsinium-labs/true-north","last_synced_at":"2026-03-09T11:33:02.090Z","repository":{"id":101906089,"uuid":"546018770","full_name":"orsinium-labs/true-north","owner":"orsinium-labs","description":"🧭 Powerful and Pythonic framework for reproducible benchmarks of Python code.","archived":false,"fork":false,"pushed_at":"2023-01-25T14:09:12.000Z","size":431,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-05T14:34:20.643Z","etag":null,"topics":["benchmark","benchmarks","malloc","malloc-benchmarks","opcodes","performance","python","python3","pythonic","tracing"],"latest_commit_sha":null,"homepage":"https://true-north.orsinium.dev/","language":"Python","has_issues":false,"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/orsinium-labs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-05T11:34:03.000Z","updated_at":"2023-09-01T11:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b78cf53-dbee-43ac-9b52-df5f7566e9d5","html_url":"https://github.com/orsinium-labs/true-north","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/orsinium-labs/true-north","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Ftrue-north","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Ftrue-north/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Ftrue-north/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Ftrue-north/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/true-north/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Ftrue-north/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30292454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["benchmark","benchmarks","malloc","malloc-benchmarks","opcodes","performance","python","python3","pythonic","tracing"],"created_at":"2024-11-16T15:07:31.856Z","updated_at":"2026-03-09T11:33:02.070Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# true-north\n\nBeautiful, powerful, and pythonic benchmarks engine for Python code.\n\nFeatures:\n\n+ Follows best practices of benchmarking to produce the most reliable results.\n+ Detects caching and side-effects.\n+ Traces memory usage and allocations (opt-in).\n+ Opcodes tracing for reproducble benchmarks (opt-in).\n+ 100% type safe.\n+ Zero dependency.\n+ Highly configurable.\n+ Nice and colorful output.\n+ Ships with CLI to discover and run all benchmarks.\n+ A friendly API to write your own logic on top of benchmarks.\n\n```text\nsorting algorithms\n  list.sort\n    possible side-effect detected: slowest iteration x21 slower than fastest\n    5k   loops, best of 5:  43.579 us ±  12.681 us                 ████▇\n              11 ops, 3961 ns/op\n  sorted\n    5k   loops, best of 5:  43.911 us ±   3.697 us    x1.01 slower █████\n              11 ops, 3991 ns/op\n  insert_sort\n    2    loops, best of 5: 100.662 ms ± 111.725 us x2309.85 slower █████\n      11_683_767 ops,    8 ns/op\n```\n\n## Installation\n\n```bash\npython3 -m pip install true-north\n```\n\n## Usage\n\n```python\nimport true_north\n\ngroup = true_north.Group()\n\n@group.add\ndef math_sorted(r):\n    val = [1, 2, 3] * 300\n    # timer start before entering the loop\n    # and stops when leaving it\n    for _ in r:\n        sorted(val)\n\n# run and print all benchmarks in the group\nif __name__ == '__main__':\n    group.print()\n```\n\nSee [examples](./examples/) for more examples and [true-north.orsinium.dev](https://true-north.orsinium.dev/) for chad documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Ftrue-north","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Ftrue-north","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Ftrue-north/lists"}