最近腾讯云有活动,于是赶在现有的服务器快要到期之前,准备续费一波。 这次我打算找个更加实惠的机型(换句话说就是性价比更高),所以找了几种价格相近的机型,进行性能测试对比一波。
这次我利用了腾讯云的规则“漏洞” —— 在腾讯云修改服务器的规格,包年包月从高价位修改成低价位不收费也不退款。 所以一路从高价位的逐渐往下调,每调整一次规格进行一次测试,不用额外多花一分钱。
S2.SMALL1(标准型S2,1核 1GB):
$ sysbench cpu --cpu-max-prime=10000000 --events=1 --threads=1 run
sysbench 1.0.17 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Prime numbers limit: 10000000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 0.06
General statistics:
total time: 17.0830s
total number of events: 1
Latency (ms):
min: 17082.84
avg: 17082.84
max: 17082.84
95th percentile: 17124.84
sum: 17082.84
Threads fairness:
events (avg/stddev): 1.0000/0.00
execution time (avg/stddev): 17.0828/0.00
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Model name: Intel(R) Xeon(R) CPU E5-26xx v4
Stepping: 1
CPU MHz: 2394.454
BogoMIPS: 4788.90
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
NUMA node0 CPU(s): 0
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc
rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic
movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm
abm 3dnowprefetch bmi1 avx2 bmi2 rdseed adx xsaveopt
S5.SMALL2(标准型S5,1核 2GB) Intel Xeon Cascade Lake(2.5 G):
# sysbench cpu --cpu-max-prime=10000000 --events=1 --threads=1 run
sysbench 1.0.17 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Prime numbers limit: 10000000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 0.07
General statistics:
total time: 14.5377s
total number of events: 1
Latency (ms):
min: 14537.62
avg: 14537.62
max: 14537.62
95th percentile: 14562.82
sum: 14537.62
Threads fairness:
events (avg/stddev): 1.0000/0.00
execution time (avg/stddev): 14.5376/0.00
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
Stepping: 5
CPU MHz: 2494.140
BogoMIPS: 4988.28
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
L3 cache: 36608K
NUMA node0 CPU(s): 0
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm
constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1
sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand
hypervisor lahf_lm abm 3dnowprefetch fsgsbase bmi1 hle avx2 smep bmi2 erms
invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd
avx512bw avx512vl xsaveopt xsavec xgetbv1 arat avx512_vnni
SA1.SMALL1 (标准型SA1 1核1G):
# sysbench cpu --cpu-max-prime=10000000 --events=1 --threads=1 run
sysbench 1.0.17 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Prime numbers limit: 10000000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 0.07
General statistics:
total time: 14.8113s
total number of events: 1
Latency (ms):
min: 14811.16
avg: 14811.16
max: 14811.16
95th percentile: 14827.42
sum: 14811.16
Threads fairness:
events (avg/stddev): 1.0000/0.00
execution time (avg/stddev): 14.8112/0.00
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 1
Model name: AMD EPYC Processor
Stepping: 2
CPU MHz: 1999.942
BogoMIPS: 3999.88
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
NUMA node0 CPU(s): 0
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb
rdtscp lm art rep_good nopl extd_apicid eagerfpu pni pclmulqdq ssse3 fma cx16
sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm
cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw retpoline_amd vmmcall
fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec
xgetbv1 arat
所以,各位猜猜我最终选择了哪款?
Thanks for reading :)