{"id":29803417,"url":"https://github.com/lightning-ai/litperf","last_synced_at":"2025-08-01T15:02:05.283Z","repository":{"id":306601327,"uuid":"1026705745","full_name":"Lightning-AI/litperf","owner":"Lightning-AI","description":"Lightweight performance tracker for Python code - zero overhead when disabled.","archived":false,"fork":false,"pushed_at":"2025-07-26T13:11:02.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T19:25:29.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lightning-AI.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":"2025-07-26T12:47:10.000Z","updated_at":"2025-07-26T14:41:11.000Z","dependencies_parsed_at":"2025-07-26T19:25:32.742Z","dependency_job_id":"36407560-5c78-4e24-bde6-6e358e9ffa29","html_url":"https://github.com/Lightning-AI/litperf","commit_stats":null,"previous_names":["lightning-ai/litperf"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Lightning-AI/litperf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-AI%2Flitperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-AI%2Flitperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-AI%2Flitperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-AI%2Flitperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightning-AI","download_url":"https://codeload.github.com/Lightning-AI/litperf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-AI%2Flitperf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267505099,"owners_count":24098346,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-28T11:08:06.850Z","updated_at":"2025-07-28T11:08:07.528Z","avatar_url":"https://github.com/Lightning-AI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LitPerf\nLightweight performance tracker for Python code - zero overhead when disabled.\n\n# install\n```bash\npip install git+https://github.com/Lightning-AI/litperf.git\n```\n\n# Example use\n\n```python\nfrom litperf import PerfTimer\n\ntimer = PerfTimer()\n    \n# Step 1\nnumbers = [i * i for i in range(50000)]\ntimer.mark(\"step1: count\")\n\n# Step 2\ntotal = 0\nfor num in numbers:\n    total += num / 2\n\ntimer.mark(\"step2: sum_numbers\")\n\ntimer.print_report()\n```\n\nThe above generates the following report:    \n```text\n==============================\nTiming Report: \n\nstart → step1: count: 0.0031 seconds\nstep1: count → step2: sum_numbers: 0.0036 seconds\n------------------------------\nTotal time: 0.0067 seconds\n------------------------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-ai%2Flitperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightning-ai%2Flitperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-ai%2Flitperf/lists"}