我刚买了一个月的非常便宜的VPS,有16 GB内存和6核(从Contabo)
现在我的问题是,如何获得一些基准测试结果,以便与其他VPSes进行比较,比如Hostinger提供的?
我在上面做了一个Geekbench基准测试,结果可以在这里看到:https://browser.geekbench.com/v4/cpu/15852309
Geekbench的问题是,我觉得它并不是真正面向网络的,因为它的分数也受到GPU的影响。
我应该使用什么来比较它们之间的VPSes?该计划是否足以主办Magento 2网站/可能更多?
发布于 2020-11-03 12:45:32
对于are服务器性能,网络、磁盘(随机读取)和CPU性能是最重要的因素。
我喜欢分别对每一个进行基准测试和比较。
对于磁盘I/O性能,可以使用sysbench
apt install sysbench
sysbench fileio --file-num=4 prepare
sysbench fileio --file-num=4 --file-test-mode=rndrw run对于CPU,性能可以使用stress-ng
apt install stress-ng
stress-ng -t 5 -c 2 --metrics-brief-c 2使用2个逻辑处理器。必要时调整。
对于网络,性能可以使用speedtest-cli
apt install speedtest-cli
speedtest-cli示例输出:
# sysbench fileio --file-num=4 --file-test-mode=rndrw run
<skip>
Throughput:
read, MiB/s: 45.01
written, MiB/s: 30.00
# stress-ng -t 5 -c 2 --metrics-brief
stress-ng: info: [14993] dispatching hogs: 2 cpu
stress-ng: info: [14993] successful run completed in 5.00s
stress-ng: info: [14993] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [14993] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [14993] cpu 3957 5.00 9.99 0.00 790.92 396.10
# speedtest-cli
Retrieving speedtest.net configuration...
Testing from <skip> ...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Uganda Hosting Limited (Helsinki) [0.20 km]: 1.807 ms
Testing download speed................................................................................
Download: 575.68 Mbit/s
Testing upload speed................................................................................................
Upload: 499.89 Mbit/shttps://stackoverflow.com/questions/64652146
复制相似问题