{"id":19692668,"url":"https://github.com/rwxd/best-of","last_synced_at":"2025-02-27T09:55:53.015Z","repository":{"id":186395822,"uuid":"675108294","full_name":"rwxd/best-of","owner":"rwxd","description":"best-of lets you check the runtime of program executions.","archived":false,"fork":false,"pushed_at":"2023-09-12T16:20:27.000Z","size":49,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T21:16:09.363Z","etag":null,"topics":["benchmark","github","runtime"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rwxd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-05T20:02:20.000Z","updated_at":"2023-08-05T20:25:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4145797e-044b-4515-82a5-5e3d7ad8bcf8","html_url":"https://github.com/rwxd/best-of","commit_stats":null,"previous_names":["rwxd/best-of"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxd%2Fbest-of","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxd%2Fbest-of/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxd%2Fbest-of/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxd%2Fbest-of/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwxd","download_url":"https://codeload.github.com/rwxd/best-of/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241001568,"owners_count":19892025,"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","github","runtime"],"created_at":"2024-11-11T19:14:02.758Z","updated_at":"2025-02-27T09:55:52.989Z","avatar_url":"https://github.com/rwxd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# best-of\n\n`best-of` lets you check the runtime of program executions.\n\n## Installation\n\nGo to the [releases page](https://github.com/rwxd/best-of/releases) and download the latest binary for your system.\n\nOr use `go install`:\n\n```bash\n$ go install github.com/rwxd/best-of@latest\n```\n\n## Usage\n\nSet the number of executions with the `-n` flag (default 10).\n\n```bash\n$ best-of -n 3 -- grep -r \"foo\" .\nBest: 0.031332 seconds\nWorst: 0.031558 seconds\nAverage: 0.031477 seconds\n```\n\nChange the output format with the `-o` flag.\n\n```bash\n$ best-of -o ms -- grep -r \"foo\" .\nBest: 31.308470 milliseconds\nWorst: 31.962246 milliseconds\nAverage: 31.662080 milliseconds\n````\n\nQuiet the output of the programs with the `-q` flag.\n\n```bash\n$ best-of -q -- grep -r \"foo\" .\nBest: 0.030725 seconds\nWorst: 0.031578 seconds\nAverage: 0.031138 seconds\n```\n\nUse concurrent executions with the `-c` flag (default 1).\n\n```bash\n$ best-of -c 10 -- grep -r \"foo\" .\nBest: 0.030725 seconds\nWorst: 0.031578 seconds\nAverage: 0.031138 seconds\n```\n\nGet percentiles with the `-p` flag.\n\n```bash\n$ best-of -p -q -n 500 -- grep -r \"foo\" .\nBest: 0.030763 seconds\nWorst: 0.034639 seconds\nAverage: 0.031361 seconds\nMedian: 0.031313 seconds\n90th percentile: 0.031742 seconds\n95th percentile: 0.031873 seconds\n99th percentile: 0.032652 seconds\n```\n\nWait between runs with the `-w` flag (default 0).\n\n```bash\nbest-of -w 3s -- grep -r \"foo\" .\n```\n\nShow a progress bar with the `--progress` flag.\n\n```bash\n$ best-of -q -n 100 --progress -- grep -r \"foo\" .\n[==================================================] 100%\nBest: 0.030471 seconds\nWorst: 0.033867 seconds\nAverage: 0.031123 seconds\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwxd%2Fbest-of","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwxd%2Fbest-of","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwxd%2Fbest-of/lists"}