AWS实例CPU性能压测

Administrator 14 2024-10-28

sysbench素数计算

# 安装 sysbench

yum -y install sysbench

# 测试方法: 启动4个线程计算10000事件所花的时间

sysbench cpu --threads=4 --events=10000 --time=0 run

# 结果分析,看 total time 即可,时间越短,性能越好

X86_64架构

c6i.large:3.2102s

c7i.large:3.1847s

t3.xlarge: 3.0116s

r6i.large:3.2194s

arm64架构

c6g.large:1.7835s

c7g.large:1.6649s

r6g.large: 1.7937s

X86_64架构

m5.large:5.4817s

c7i.large:3.3128s