{"id":21539263,"url":"https://github.com/thundr67/raptor","last_synced_at":"2025-03-17T21:40:36.377Z","repository":{"id":57457460,"uuid":"169847570","full_name":"ThundR67/Raptor","owner":"ThundR67","description":"An Easy Way To Benchmark Your Python Code","archived":false,"fork":false,"pushed_at":"2019-02-10T07:24:13.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T09:32:23.669Z","etag":null,"topics":["benchmark","benchmark-framework","benchmarking","benchmarks","pytho","python","python3","tool"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThundR67.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":"2019-02-09T08:39:44.000Z","updated_at":"2019-04-04T12:37:45.000Z","dependencies_parsed_at":"2022-09-10T21:51:28.091Z","dependency_job_id":null,"html_url":"https://github.com/ThundR67/Raptor","commit_stats":null,"previous_names":["sonicroshan/raptor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThundR67%2FRaptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThundR67%2FRaptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThundR67%2FRaptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThundR67%2FRaptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThundR67","download_url":"https://codeload.github.com/ThundR67/Raptor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244115433,"owners_count":20400574,"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":["benchmark","benchmark-framework","benchmarking","benchmarks","pytho","python","python3","tool"],"created_at":"2024-11-24T04:14:34.448Z","updated_at":"2025-03-17T21:40:36.353Z","avatar_url":"https://github.com/ThundR67.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raptor\n\nA Easy Way To Benchmark Your Code.\n\n# How To Use It\nStep 1: First You Will Need To Create A Benchmark File For Your Project\n\n```python3\n\"\"\"to_benchmark.py\"\"\"\n\n#Add All Your Setup\nimport math\n\n\n#Write Your Benchmarking Functions\ndef bench_square_root():\n    \"\"\"Name Your Function Starting With bench. Or Raptor Wont Detect It\n    Also the function should not take any arguments\"\"\"\n    return math.sqrt(25)\n    \ndef bench_multiply():\n    return 5 ** 25\n```\n\nStep 2: Download raptor.py\n```\npip install python-raptor\n```\n\nThen, Run This In Your Terminal\n\n**NOTICE: The -t Argument Takes An Integer Which Tells Raptor How Many Times\nShould Each Benchmarking Function Run**\n```\nraptor.py to_benchmark.py -t 10000\n```\n\nStep 3: See The  Output. Voilaaaaa!!!!!!!!!\n\nOutput\n```\n========== Bench Marking ===========\n[bench_square_root] Took 0.0025385 Seconds For 10000 Run(s)\n[bench_multiply] Took 0.0010813999999999997 Seconds For 10000 Run(s)\n```\n\n\n\n# Future Features\n1. I want to add an history, which can show you how much faster or slower your program has gotten\n2. I want to add colored output\n3. I want to add better exception handling\n\n\n# Built With\nRaptor Uses Timeit Module To Benchmark Your Code\n\n\n# Author\nRoshan Jignesh Mehta - sonicroshan122@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundr67%2Fraptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundr67%2Fraptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundr67%2Fraptor/lists"}