[{"data":1,"prerenderedAt":219},["ShallowReactive",2],{"blog-/blog/vps-performance-test":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"author":10,"date":11,"tags":12,"body":14,"_type":213,"_id":214,"_source":215,"_file":216,"_stem":217,"_extension":218},"/blog/vps-performance-test","blog",false,"","VPS 性能测试常用工具和方法","购买了 VPS 后如何知道它的真实性能？本文介绍几款常用的 Linux VPS 性能测试脚本和工具。","VPS Hunter","2025-05-20",[13],"VPS实战",{"type":15,"children":16,"toc":207},"root",[17,25,32,37,93,99,104,110,115,155,160,196,201],{"type":18,"tag":19,"props":20,"children":21},"element","p",{},[22],{"type":23,"value":24},"text","拿到一台新的 VPS 后，进行一轮全面的性能测试是很有必要的。这可以帮助你了解服务器的真实水平。",{"type":18,"tag":26,"props":27,"children":29},"h2",{"id":28},"_1-benchsh",[30],{"type":23,"value":31},"1. Bench.sh",{"type":18,"tag":19,"props":33,"children":34},{},[35],{"type":23,"value":36},"这是一个非常流行的综合性测试脚本，可以一键测试服务器的系统信息、CPU 性能、内存性能、磁盘 I/O 和网络速度。",{"type":18,"tag":38,"props":39,"children":43},"pre",{"className":40,"code":41,"language":42,"meta":7,"style":7},"language-bash shiki shiki-themes github-dark","# 使用方法\nwget -qO- bench.sh | bash\n","bash",[44],{"type":18,"tag":45,"props":46,"children":47},"code",{"__ignoreMap":7},[48,60],{"type":18,"tag":49,"props":50,"children":53},"span",{"class":51,"line":52},"line",1,[54],{"type":18,"tag":49,"props":55,"children":57},{"style":56},"--shiki-default:#6A737D",[58],{"type":23,"value":59},"# 使用方法\n",{"type":18,"tag":49,"props":61,"children":63},{"class":51,"line":62},2,[64,70,76,82,88],{"type":18,"tag":49,"props":65,"children":67},{"style":66},"--shiki-default:#B392F0",[68],{"type":23,"value":69},"wget",{"type":18,"tag":49,"props":71,"children":73},{"style":72},"--shiki-default:#79B8FF",[74],{"type":23,"value":75}," -qO-",{"type":18,"tag":49,"props":77,"children":79},{"style":78},"--shiki-default:#9ECBFF",[80],{"type":23,"value":81}," bench.sh",{"type":18,"tag":49,"props":83,"children":85},{"style":84},"--shiki-default:#F97583",[86],{"type":23,"value":87}," |",{"type":18,"tag":49,"props":89,"children":90},{"style":66},[91],{"type":23,"value":92}," bash\n",{"type":18,"tag":26,"props":94,"children":96},{"id":95},"_2-geekbench",[97],{"type":23,"value":98},"2. Geekbench",{"type":18,"tag":19,"props":100,"children":101},{},[102],{"type":23,"value":103},"Geekbench 是一个跨平台的处理器性能测试软件，它提供了一个标准化的分数，可以让你很方便地与其他服务器进行对比。",{"type":18,"tag":26,"props":105,"children":107},{"id":106},"_3-yabs-yet-another-bench-script",[108],{"type":23,"value":109},"3. YABS (Yet Another Bench Script)",{"type":18,"tag":19,"props":111,"children":112},{},[113],{"type":23,"value":114},"YABS 是另一个强大的测试脚本，它整合了 Geekbench、fio (磁盘测试) 和 iperf3 (网络测试)，提供非常全面的报告。",{"type":18,"tag":38,"props":116,"children":118},{"className":40,"code":117,"language":42,"meta":7,"style":7},"# 使用方法\ncurl -sL yabs.sh | bash\n",[119],{"type":18,"tag":45,"props":120,"children":121},{"__ignoreMap":7},[122,129],{"type":18,"tag":49,"props":123,"children":124},{"class":51,"line":52},[125],{"type":18,"tag":49,"props":126,"children":127},{"style":56},[128],{"type":23,"value":59},{"type":18,"tag":49,"props":130,"children":131},{"class":51,"line":62},[132,137,142,147,151],{"type":18,"tag":49,"props":133,"children":134},{"style":66},[135],{"type":23,"value":136},"curl",{"type":18,"tag":49,"props":138,"children":139},{"style":72},[140],{"type":23,"value":141}," -sL",{"type":18,"tag":49,"props":143,"children":144},{"style":78},[145],{"type":23,"value":146}," yabs.sh",{"type":18,"tag":49,"props":148,"children":149},{"style":84},[150],{"type":23,"value":87},{"type":18,"tag":49,"props":152,"children":153},{"style":66},[154],{"type":23,"value":92},{"type":18,"tag":26,"props":156,"children":158},{"id":157},"重点测试项目",[159],{"type":23,"value":157},{"type":18,"tag":161,"props":162,"children":163},"ul",{},[164,176,186],{"type":18,"tag":165,"props":166,"children":167},"li",{},[168,174],{"type":18,"tag":169,"props":170,"children":171},"strong",{},[172],{"type":23,"value":173},"CPU性能",{"type":23,"value":175},": Geekbench 分数是重要参考。",{"type":18,"tag":165,"props":177,"children":178},{},[179,184],{"type":18,"tag":169,"props":180,"children":181},{},[182],{"type":23,"value":183},"磁盘 I/O",{"type":23,"value":185},": 使用 `dd` 命令或 fio 测试，关注读写速度。",{"type":18,"tag":165,"props":187,"children":188},{},[189,194],{"type":18,"tag":169,"props":190,"children":191},{},[192],{"type":23,"value":193},"网络速度",{"type":23,"value":195},": 测试到国内三大运营商（电信、联通、移动）的速度尤其重要。",{"type":18,"tag":19,"props":197,"children":198},{},[199],{"type":23,"value":200},"通过这些工具，你可以对你的 VPS 性能有一个清晰的认识。",{"type":18,"tag":202,"props":203,"children":204},"style",{},[205],{"type":23,"value":206},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":62,"depth":62,"links":208},[209,210,211,212],{"id":28,"depth":62,"text":31},{"id":95,"depth":62,"text":98},{"id":106,"depth":62,"text":109},{"id":157,"depth":62,"text":157},"markdown","content:blog:vps-performance-test.md","content","blog/vps-performance-test.md","blog/vps-performance-test","md",1789526575506]