Linux benchmark tool

http://blog.sina.com.cn/s/blog_53ce9d8d0100dici.html

http://www.gnutoolbox.com/linux-benchmark-tools/

superpi是很多DIYer很喜欢用的一个windows下的benchmark(性能测试和比较)工具。主要来测试cpu性能。super-pi这个程序是东京大学的一位学者开发的算法。值得一提的是该源代码并未公开。虽然在网络上能找到据称自己是superpi在linux平台的移植,但到底是否是同一算法我也没仔细研究过。

我在网络上搜索过很多linux下benchmark的信息,有的很多都已过时,而有的安装调试过于繁琐。

这里介绍的用linux自带的bc计算器计算pi值的一种benchmark手段。这也正体现了我以前说的linux是工程师的系统的说法,linux集成了非常多的工程师所需要的工具。

其实很简单,就是一行命令。

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

time是计时程序。scale是精度,4*a(1)调用了反正切函数。由三角函数我们知道1的反正切是pi/4, pi=4* pi/4。 -l -q参数的意思请参照manpage。这一行其实就是让bc计算1的反正切,计算精度是5000位。

有的人用tcsh作为shell的需要注意指定time工具的位置,/usr/bin/time。tcsh内部有一个内部命令time,输出格式诡异。

我在unix-center的ubuntu上跑的结果如下。比我的x200好像慢点。x200好像是38s。

G1620:

real    0m24.734s
user    0m24.607s
sys    0m0.010s

AMD Athlon 4800+

real    0m59.734s
user    0m59.607s
sys    0m0.000s

Linux benchmark tool

时间: 2024-08-11 16:35:11

Linux benchmark tool的相关文章

Linux Cmd Tool 系列之—script & scriptreplay

Intro Sometime we want to record cmd and outputs in the interactive shell sessions. However history cmd cannot do this. So we need cmd line recording tool like script and scriptreplay. References Master's Shoulder:How to Record and Replay Linux Termi

Linux monitor tool

Tool          Description                      Base      Repositoryvmstat      all purpose performance tool              yes      yesmpstat      provides statistics per CPU              no      yessar          all purpose performance monitoring tool 

Linux Cmd Tool 系列之—history & search command history

History cmd is for list Bash's log of the historical cmd you typed 1. List last n commands history n 2. Execute cmd No.n !n 3. Execute last cmd !! or !-1 4. Execute command n times before !-n 5. Execute the last cmd that starts with "string" !st

Linux Cmd Tool 系列01—alias

The alias cmd list your current aliases. For example : alias   Use alias to shorten a long cmd in current shell session: alias [name=['command']]   Use unalias to remove the alias , or use "\"(back-slash) before command to disable alias.   Your

SQLIO Disk Subsystem Benchmark Tool

C:\Program Files (x86)\SQLIO>sqlio -? sqlio v1.5.SG -?: invalid option Usage: sqlio [options] [<filename>...] [options] may include any of the following: -k<R|W> kind of IO (R=reads, W=writes) -t<threads> number of threads -s<secs&

Linux Performance tool

https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ https://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat-commands/ https://www.tecmint.com/linux-performance-monitoring-tools/ https://geekflare.com/linux-per

[转] KVM storage performance and cache settings on Red Hat Enterprise Linux 6.2

Almost one year ago, I checked how different cache settings affected KVM storage subsystem performance. Results were very clear: to obtain good I/O speed, you had to use the write-back or none cache policies, avoiding the write-through one. However,

[fw]linux测试工程介绍(Linux Test Project)

http://ltp.sourceforge.net/ Linux Test Project, 后台很硬,由SGI? 发起, IBM维护,所以质量有保障. 里面介绍了很多工具,对于一般的基准测试应该是真够用了,关键是开发源码, 可以根据自己工程的需求,自己定制修改,本人由于工作原因阅读了(lmbench:lmdd , dbench 文件系统方面的测试),觉得非常不错 http://www.bitmover.com/lmbench/ http://www.samba.org/ftp/tridge/

Linux内核RCU(Read Copy Update)锁简析-前传

如果你用Linux perf tool的top命令做热点纠察时,你会发现,前10名嫌疑犯里面肯定有好几个都是锁!在进行并行多处理时,不可避免地会遇到锁的问题,这是不可避免的,因为这一直以来也许是保护共享数据的唯一方式,被保护的区域就是临界区.而我们知道,锁的开销是巨大的,因为它不可避免地要么等待,要么让别人等待,然而这并不是开销的本质,开销的本质在于很多锁都采用了"原子操作"这么一个技术,如此一个原子操作会对总线或者cache一致性造成很大的影响,比如要对一个变量进行原子加1,不要认为