golang-benchmark
Measure and Diagnose Go Performance
Go performance work often fails because benchmarks are noisy or profiles are misread. This skill provides a rigorous workflow for measurement, comparison, and diagnosis.
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "golang-benchmark" from https://skillstore.io/skills/samber-golang-benchmark.md and its manifest at https://skillstore.io/api/skills/samber-golang-benchmark/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「golang-benchmark」。 A candidate benchmark is three percent faster, but benchstat reports no significant difference.
預期結果:
Do not claim an improvement. Increase sample quality, control environmental noise, and compare both versions under identical conditions.
正在使用「golang-benchmark」。 A CPU profile is dominated by runtime allocation functions.
預期結果:
- Rank cumulative callers to find application entry points.
- Inspect hot source lines and collect an allocation profile.
- Confirm escape behavior before changing allocation strategy.
正在使用「golang-benchmark」。 CI benchmarks vary by ten percent between runs.
預期結果:
Use a dedicated runner, run benchmarks serially, increase repetitions, and set thresholds above measured environmental variance.
安全審計
中風險Most alerts are lexical false positives caused by Markdown, localhost examples, and profiling terminology. Confirmed risks include privileged CPU controls, token delegation, and an unauthenticated all-interface trace viewer. Semantic review also found insecure TLS guidance and an unpinned tool installation.
已確認的安全問題 (2)
能力複核項目 (18)
這些是真實的本機能力,對此技能而言可能是預期行為,因此需要複核,但不會按已確認的惡意行為計分。
風險因素
⚙️ 外部命令 (50)
🌐 網路存取 (27)
📁 檔案系統存取 (18)
🔑 環境變數 (1)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/samber-golang-benchmark/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/samber-golang-benchmark?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/samber-golang-benchmark?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-benchmark/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/samber-golang-benchmark.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
samber. (2026). golang-benchmark security audit report (audit version 1) [Author version 1.3.2]. Skillstore. https://skillstore.io/skills/samber-golang-benchmark/audits/1BibTeX 引用
@techreport{samber-samber-golang-benchmark-2026,
author = {samber},
title = {golang-benchmark security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-benchmark/audits/1},
note = {Author version 1.3.2}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-benchmark security audit report (audit version 1)"
version: "1.3.2"
type: report
authors:
- name: "samber"
date-released: "2026-09-23"
url: "https://skillstore.io/skills/samber-golang-benchmark/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-benchmark:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 中你可以打造什麼
Validate an Optimization
Create repeatable before-and-after benchmarks and decide whether measured changes are statistically significant.
Diagnose Production Latency
Correlate runtime metrics with CPU, memory, goroutine, and trace evidence to identify expensive paths.
Prevent CI Regressions
Establish benchmark baselines, practical thresholds, and controlled runner settings for pull request checks.
試試這些提示
Write a Go benchmark for [function]. Exclude setup time, report allocations, and use representative inputs.
Compare these baseline and candidate benchmark results. Explain significance, noise, allocation changes, and whether the optimization is supported.
Analyze this [CPU or memory] profile summary. Identify likely application callers and recommend focused pprof commands for confirmation.
Design a CI benchmark gate for [repository]. Include baseline handling, sample counts, thresholds, runner controls, permissions, and failure investigation.
最佳實務
- Compare versions on the same toolchain, hardware, workload, and runner configuration.
- Collect multiple samples and use statistical results before making performance claims.
- Preserve benchmark context, profile type, build identity, and hardware details with every result.
避免
- Do not approve an optimization from one benchmark run or a nonsignificant result.
- Do not run competing benchmarks concurrently on shared processors.
- Do not expose profiling or trace endpoints without authentication and network restrictions.
常見問題
Does this skill write Go benchmarks?
Can it interpret benchstat output?
Which profiles does it cover?
Can it diagnose production issues?
Does it support CI regression detection?
Does system tuning require administrator access?
開發者詳細資訊
作者
samber授權
MIT
作者版本
v1.3.2
Skillstore 修訂
r1
引用
2aa351cb09c29b7287d263bd8ea81e9bee3b2a61
維護新鮮度
2026/9/30
使用量
0 次下載 · 0 次瀏覽
檔案結構