![]() At 32 Ops/Word, the Pi2 (all cores) was approximately 83% faster and the original Pi B.īenchmarking the MFLOPS (via Roylongbottom) On 2 Ops/Word, the Pi2 (all 4 cores) is 1148% faster than the original. ![]() Crank the processor up to 1000MHz ups those numbers to 5 loops, making it considerably faster over the original Pi. The Pi2 clocked 900MHz came in with 494 MFLOPS 12.8 loops running 2 Ops/Word and 1581 12.8 loops running 32 Ops/Word respectively. You will no doubt notice the difference in speed with the Pi2 and the use of all 4 of its cores utilizing 8 threads (higher numbers are better). The benchmark for the old RPi (single-core running 700MHz) achieved 43 MFLOPS 12.8 loops running 2 Ops/Word and 191 MFLOPS 12.8 loops running 32 Ops/Word respectively. Of course, this is with using all 4 cores of the ARM Cortex-A7 running 8 threads (2 Hyperthreads per-core) running 2 operations per-word and 32 respectively. Using Roy Longbottom’s Android multithreading benchmark MP-MFLOPS, it’s clear that the Pi2 is noticeably faster, especially when it’s overclocked to the maximum 1,000MHz. To discover more about taxing all the cores in a benchmark, I discovered the following benchmark results. Which is about 155% improvement over the original Pi models. I could extrapolate that if the load was shared across the cores, the Pi2 could calculate Pi in 3.8938 seconds. As it turns out, that the bc calculation was a single thread operation, and only one core is used, however the Pi2 beat it predecessors by 9.085 seconds with 3 cores tied behind its back. The Pi2 had a 62% improvement in time over its predecessors. Also, I ran the calculation several times and found the results varied, which was surprising. Unsurprisingly, added RAM has no influence on this simple calculation. The model B and B+ results were the same, which isn’t surprising since the boards are almost identical. The results for the three Pi models (original B, B+, and Pi 2), at stock clock frequency, were as follows (results in seconds): Obviously, the bc part is the bc utility. ![]() The a() portion is the Arc Tangent function. ![]() Scale is the number of decimal places to calculate. To calculate pi, I used the command line formula: time echo "scale=2015 4*a(1)" | bc -l To start with, I installed the Command Line Calculator, called BCĮasy to install… type at the command prompt: sudo apt-get install bc Arcade emulation is buttery as well, however perceived speed wasn’t scientific enough for me so I decided it would be apt to calculate Pi, on the Pi. Games seem smoother, especially first person shooters. I received a Raspberry Pi 2, and immediately wanted to see how much of an improvement it was. This is the Raspberry Pi 2, which I used to calculate pi against other Pis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |