{"id":7747378,"name":"WillAbides/benchdiff-action","ecosystem":"actions","description":"Runs go benchmarks on HEAD and a base branch and reports the resulting benchstat output.","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/WillAbides/benchdiff-action","keywords_array":["benchmark","benchstat","go","golang"],"namespace":"WillAbides","versions_count":10,"first_release_published_at":"2021-01-04T13:42:54.000Z","latest_release_published_at":"2023-11-22T17:18:58.000Z","latest_release_number":"v0.3.5","last_synced_at":"2026-05-12T23:45:49.172Z","created_at":"2023-05-17T11:23:38.897Z","updated_at":"2026-05-12T23:45:49.172Z","registry_url":"https://github.com/WillAbides/benchdiff-action","install_command":null,"documentation_url":null,"metadata":{"name":"benchdiff","description":"Runs go benchmarks on HEAD and a base branch and reports the resulting benchstat output.","branding":{"icon":"zap","color":"purple"},"inputs":{"benchdiff_args":{"description":"Arguments for the benchdiff command line.  This action will run the command line `benchdiff \u003cbenchdiff_args\u003e`\nafter making some adjustments to the arguments (listed below).\n\nIf `--base-ref` isn't present in the arguments, then `--base-ref \u003cdefault branch\u003e` will be added.\n\n`--json` is always added because the action requires json formatted output.\n\n`--benchstat-output=markdown` is added when no other benchstat-output value is set because the reports look best\nwith markdown formatting.\n\nConsider this example:\n```\n--cpu=1,2 --warmup-count=1 --warmup-time=10ms --tolerance=50 --debug\n```\n`--cpu=1,2` is important on actions because runners have only two cores available to them.\n\n`--warmup-count=1` and `warmup-time=10ms` cause benchdiff to do a quick warmup before starting the benchmarks.\nThis is important on actions because the runners appear to have a small amount of cpu burst available. If you burn\nthrough that in the warmup, then it makes for a better cmoparison between the real runs.\n\n`--tolerance=50` means that a benchmark isn't considered degraded unless it's delta is greater than +50%. Action\nrunners can have inconsistent performance within the same run. This helps mitigate a lot of false alarms.\n\n`--debug` causes benchdiff to output raw results to stderr (among other debug data). I like having this on just\nto see progress in the logs.\n\nSee https://github.com/willabides/benchdiff for all available flags.\n","default":"","required":false},"benchdiff_version":{"description":"Version of the benchdiff command to use.\n\nWhen a new version of this action is released, the default value will be updated to the latest version of\nbenchdiff that isn't a breaking change from the previous default.\n","default":"0.5.6","required":false},"report_status":{"description":"Whether to report the status. Any value other than \"true\" is interpreted as false.\n\nI call this \"status\" because that's a better known term. What is actually created is a check-run.\n","default":"true","required":false},"status_name":{"description":"Name to use in reporting status. This is the name of the check-run that is created.\n","default":"benchdiff","required":false},"status_sha":{"description":"Report status to this sha. Default is the head of your benchdiff run.","default":"","required":false},"status_on_degraded":{"description":"Status to report for degraded results.\n\nOptions are \"success\", \"failure\" and \"neutral\"\n","default":"failure","required":false},"github_token":{"description":"Authentication token to use for reporting status.\n\nIf you use a non-default token it needs to be a token for a GitHub App installation with permission to create a\ncheck-run.\n","required":false,"default":"${{ github.token }}"}},"outputs":{"benchstat_output":{"description":"Stdout from the benchdiff command.\n","value":"${{ steps.run-benchdiff.outputs.benchstat_output }}"},"bench_command":{"description":"Command used to run benchmarks. This is derived from the `benchdiff_args` input.\n","value":"${{ steps.run-benchdiff.outputs.bench_command }}"},"degraded_result":{"description":"Whether any of the benchmarks degraded between base and head.","value":"${{ steps.run-benchdiff.outputs.degraded_result }}"},"head_sha":{"description":"The git revision benchstat used as head.","value":"${{ steps.run-benchdiff.outputs.head_sha }}"},"base_sha":{"description":"The git revision benchstat used as base.","value":"${{ steps.run-benchdiff.outputs.base_sha }}"}},"runs":{"using":"composite","steps":[{"id":"linux-only","shell":"bash","run":"if [ \"${{ runner.os }}\" != \"Linux\" ]; then\n  echo This action only runs on Linux\n  exit 1\nfi\n"},{"id":"install","shell":"bash","run":"export ACTION_PATH='${{ github.action_path }}'\nexport BENCHDIFF_DIR='${{ runner.temp }}/benchdiff'\nexport BENCHDIFF_VERSION='${{ inputs.benchdiff_version }}'\n\"$ACTION_PATH/src/install.sh\"\n"},{"id":"run-benchdiff","shell":"bash","run":"export ACTION_PATH='${{ github.action_path }}'\nexport BENCHDIFF_ARGS='${{ inputs.benchdiff_args }}'\nexport BENCHDIFF_DIR='${{ runner.temp }}/benchdiff'\n\"$ACTION_PATH/src/run.sh\"\n"},{"id":"report-status","shell":"bash","run":"export ACTION_PATH='${{ github.action_path }}'\nexport REPORT_STATUS='${{ inputs.report_status }}'\nexport BENCH_COMMAND='${{ steps.run-benchdiff.outputs.bench_command }}'\nexport BENCHSTAT_OUTPUT='${{ steps.run-benchdiff.outputs.benchstat_output }}'\nexport DEGRADED_RESULT='${{ steps.run-benchdiff.outputs.degraded_result }}'\nexport HEAD_SHA='${{ steps.run-benchdiff.outputs.head_sha }}'\nexport BASE_SHA='${{ steps.run-benchdiff.outputs.base_sha }}'\nexport STATUS_SHA='${{ inputs.status_sha }}'\nexport GH_TOKEN='${{ inputs.github_token }}'\nexport STATUS_NAME='${{ inputs.status_name }}'\nexport STATUS_ON_DEGRADED='${{ inputs.status_on_degraded }}'\n\"$ACTION_PATH/src/report-status.sh\"\n"}]},"default_branch":"main","path":null},"repo_metadata":{"id":55050289,"uuid":"325668419","full_name":"WillAbides/benchdiff-action","owner":"WillAbides","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-22T21:19:10.000Z","size":46,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-17T01:46:49.434Z","etag":null,"topics":["benchmark","benchstat","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/WillAbides.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}},"created_at":"2020-12-30T23:25:30.000Z","updated_at":"2024-02-15T03:10:16.000Z","dependencies_parsed_at":"2024-12-11T17:08:47.075Z","dependency_job_id":"6841609a-5cab-4f7c-a712-1dd5b9731c12","html_url":"https://github.com/WillAbides/benchdiff-action","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/WillAbides/benchdiff-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fbenchdiff-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fbenchdiff-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fbenchdiff-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fbenchdiff-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WillAbides","download_url":"https://codeload.github.com/WillAbides/benchdiff-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fbenchdiff-action/sbom","scorecard":{"id":151377,"data":{"date":"2025-08-11","repo":{"name":"github.com/WillAbides/benchdiff-action","commit":"990b4c50b5420b485bf87e42c9f18234eba76fbc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/19 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/WillAbides/benchdiff-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/WillAbides/benchdiff-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/WillAbides/benchdiff-action/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/WillAbides/benchdiff-action/ci.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'","Warn: branch protection not enabled for branch 'v0'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T10:46:13.315Z","repository_id":55050289,"created_at":"2025-08-16T10:46:13.315Z","updated_at":"2025-08-16T10:46:13.315Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279672455,"owners_count":26208878,"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-10-19T02:00:07.647Z","response_time":64,"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"},"owner_record":{"login":"WillAbides","name":"WillAbides","uuid":"233500","kind":"user","description":"","email":"","website":"https://github.com/WillAbides","location":"Austin, TX","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/233500?u=69a3bf89a07358e92baef9c8bd592309d6fc7463\u0026v=4","repositories_count":132,"last_synced_at":"2024-04-16T00:15:09.184Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/WillAbides","funding_links":[],"total_stars":301,"followers":119,"following":28,"created_at":"2022-11-03T12:38:25.612Z","updated_at":"2024-04-16T00:15:37.046Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WillAbides","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WillAbides/repositories"},"tags":[]},"repo_metadata_updated_at":"2025-10-21T02:08:00.751Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":24.772619236254158,"dependent_packages_count":0.0,"stargazers_count":13.11678022500396,"forks_count":21.685945175091113,"docker_downloads_count":3.8377436222468706,"average":12.682617651719221},"purl":"pkg:githubactions/WillAbides/benchdiff-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/WillAbides/benchdiff-action","docker_dependents_count":1,"docker_downloads_count":48,"usage_url":"https://repos.ecosyste.ms/usage/actions/WillAbides/benchdiff-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/WillAbides/benchdiff-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-04-15T06:49:35.154Z","issues_count":0,"pull_requests_count":8,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":59151.833333333336,"issues_closed_count":0,"pull_requests_closed_count":6,"pull_request_authors_count":2,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.625,"merged_pull_requests_count":6,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/willabides%2Fbenchdiff-action/issues","maintainers":[{"login":"WillAbides","count":6,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/WillAbides"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/WillAbides%2Fbenchdiff-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/WillAbides%2Fbenchdiff-action/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/WillAbides%2Fbenchdiff-action/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/WillAbides%2Fbenchdiff-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/WillAbides%2Fbenchdiff-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/WillAbides%2Fbenchdiff-action/codemeta","maintainers":[]}