Linux Benchmark Tool

Source: Internet
Author: User
Tags benchmark

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

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

Superpi is a benchmark (performance testing and comparison) tool that many diyer like to use under Windows. Primarily to test CPU performance. Super-pi This program is an algorithm developed by a scholar at the University of Tokyo. It is worth mentioning that the source code is not disclosed. Although it can be found on the network that it is SUPERPI on the Linux platform, but whether it is the same algorithm I have not studied carefully.

I have searched the network for many Linux benchmark information, some of them are outdated, and some installation debugging is too cumbersome.

Here is a benchmark means of calculating pi values using the BC calculator that comes with Linux. It's also a reflection of what I used to say about Linux as an engineer's system, and Linux integrates a lot of the tools that engineers need.

In fact, it is very simple, is a line of command.

Time echo "scale=5000; 4*a (1) "| Bc-l-Q

Time is the timing program. Scale is precision, and 4*a (1) calls the inverse tangent function. By trigonometric functions We know that the 1 is PI/4, pi=4* Pi/4. Please refer to manpage for the meaning of the-l-q parameter. This line is actually let BC calculate 1 of the inverse tangent, the calculation accuracy is 5,000 bits.

Some people use tcsh as a shell to pay attention to specifying the location of the time tool,/usr/bin/time. There is an internal command time inside the tcsh, and the output format is bizarre.

The result of my running on Ubuntu Unix-center is as follows. It seems to be slower than my x200. X200 seems to be 38s.

G1620:

Real 0m24.734s
User 0m24.607s
SYS 0m0.010s

AMD Athlon 4800+

Real 0m59.734s
User 0m59.607s
SYS 0m0.000s

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.