linux 服务io压力测试,【转】linux下的CPU、内存、IO、网络的压力测试

原文:http://blog.51cto.com/wushank/1585927

以下仅仅记录了我需要的部分。

一、对CPU进行简单测试:

1、通过bc命令计算特别函数

例:计算圆周率

echo "scale=5000; 4*a(1)" | bc -l -q

MATH LIBRARY

If bc is invoked with the -l option, a math library is preloaded and the default  scale  is  set  to  20.

The  math  functions  will  calculate their results to the scale set at the time of their call.  The math

library defines the following functions:

s (x)  The sine of x, x is in radians.    正玄函数

c (x)  The cosine of x, x is in radians.  余玄函数

a (x)  The arctangent of x, arctangent returns radians. 反正切函数

l (x)  The natural logarithm of x.  log函数(以2为底)

e (x)  The exponential function of raising e to the value x.  e的指数函数

j (n,x) The bessel function of integer order n of x.   贝塞尔函数

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值