Qualcomm ARM CPU vs. Intel x86 CPU Performance Comparison
With the advent of the mobile internet era, arm-based CPUs such as Qualcomm (Qualcomm), Texas Instruments (Texas Instruments) have received more and more attention, while the former king's Intel x86 architecture seems to be struggling in the mobile internet due to power consumption issues.
The Intel x86 architecture, compared to the arm architecture, is powerful and consumes a high level of power that is known to all. What is the CPU performance of the Intel x86 architecture much stronger than the arm architecture? Let's make a simple evaluation of a single core.
My PC Cpu:intel Pentium dual-core CPU E5300 2.60GHz (launched 2008Q1 x86)
My phone's cpu:qualcomm Snapdragon S2 MSM8255 1.0GHz (launched 2010Q2 ARMv7)
From the above instructions, Intel CPUs are available two years earlier than the Qualcomm CPU.
We use Whetstone Benchmark (whetstone:floating-point arithmetic performance) to test the performance of the CPU. The overall steps are as follows:
1. Download Whetstone Source code
2. Compile Windows PC version with GCC in MinGW environment to run the program
3. Use ARM-NONE-LINUX-GNUEABI-GCC to compile Android Native C version in Linux cross-compilation environment to run the program
4. Run the test program in Windows
5. Run the test program in Android ARM Linux
6. Summary Run time
First, download Whetstone source code
You can download the source file directly at the following address:
Http://www.netlib.org/benchmark/whetstone.c
Second, use GCC to compile Windows PC version in MinGW environment to run the program
Compile in MinGW using the following command line: Gcc-static whetstone.c–o0-o whetstone-lm
Note: Using-o0, do not allow GCC to optimize the code to ensure the accuracy of the comparison test
Third, in the Linux cross-compilation environment using ARM-NONE-LINUX-GNUEABI-GCC compiled Android Native C version can run the program
Compile in the Linux cross-compilation environment using the following command line: Arm-none-linux-gnueabi-gcc-static whetstone.c–o0-o whetstone-lm
On the establishment of the Linux cross-compilation environment, I can see another article: "Building an arm cross-compilation environment in Ubuntu10.04"
http://blog.csdn.net/xt_xiaotian/article/details/6836739
Iv. running the test program in MinGW
Perform 100,000 loops on the program and observe the output.
$ time./whetstone.exe 100000
loops:100000, Iterations:1, Duration:8 sec.
C converted Double Precision whetstones:1250.0 MIPS
Real 0m8.698s
User 0m0.000s
SYS 0m0.015s
V. Run the test program in Android ARM Linux
Suppose the system is already configured and good for ADB (Android Debug Bridge). Connect your phone to the USB cable, and then turn on USB debugging. Enter the ADB shell in the cmd window to enter the Android adb shell. Then configure the following:
1. Use Mount–o remount,rw/system to hook up the/system directory as writable. Ctrl + C jumps out of Android adb Shell, back to just the cmd window
2. Use adb push C:\whetstone/system to copy the Whetstone program compiled in the Linux cross-compilation environment to the/system folder in Android Linux
3. Use chmod 777 Whetstone to set the program to executable
4. Use time./whetstone 100000 to execute the program and observe the output.
The output is:
loops:100000, Iterations:1, duration:148 sec.
C converted Double Precision whetstones:67.6 MIPS
Real 2m 28.88s
User 2m 28.25s
SYS 0m 0.02S
Vi. Summary Run time
The same program, the same number of cycles, takes 8.698 seconds to run on the Intel CPU and takes 148.88 seconds to run on the Qualcomm CPU.
It can be concluded that in floating-point arithmetic, the Intel Pentium dual-core CPU E5300 2.60GHz is 17 times times stronger than Qualcomm Snapdragon S2 MSM8255 1.0GHz. According to the Intel Moore's law, every 18 months, the CPU performance will increase by one times, can calculate the same grade, the same time product Intel CPU is 42 times times stronger than the Qualcomm CPU.
Test may be some, but also to a certain extent, reflects the performance gap between the two different types of CPU, welcome to reply to say that their arm CPU, PC CPU test values.
--------------------------------------------------
This comparison is very unscientific.
The main is that you run too few loops. The user time of Windows is ignored, and Android has the same user time and run time.
Increase the cycle to reflect the gap. The gap should be close to 1000 times times, not 42 times times.
--------------------------------------------------
In contrast, Qualcomm MSM8255 is just the equivalent of an Intel Pentium III Mobile 750MHz, link:http://ark.intel.com/products/27410/ Mobile-intel-pentium-iii-processor-750-mhz-256k-cache-100-mhz-fsb
ARM CPU vs. Intel x86 CPU Performance Comparison