element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Documents Putting the New Raspberry Pi 2 to the Test
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: biglesp
  • Date Created: 29 Jan 2015 7:27 PM Date Created
  • Last Updated Last Updated: 8 Oct 2021 8:15 AM
  • Views 5880 views
  • Likes 4 likes
  • Comments 21 comments
Related
Recommended

Putting the New Raspberry Pi 2 to the Test

The Raspberry Pi Foundation have just released their latest Raspberry Pi, but this is no simple update, oh no it is a seismic shift for the single board computer. imageSince its release in 2012, the Raspberry Pi has seen a number of updates. First, the RAM was increased from 256MB to 512MB and then with the B+ in 2014 we saw two more USB ports and an expanded GPIO. But what has remained the same are the CPU and GPU, namely the ARM11 CPU and VideoCore IV GPU that form the BCM2835 system on a chip (SoC).


So what makes the new Raspberry Pi any better than it’s predecessors? There has been a specification bump and the trusty BCM2835 has been replaced with a BCM2836 that has been custom made by Broadcom for the Raspberry Pi. This new SoC brings a new CPU in the form of an ARM7 based quad core processor running at 900Mhz per core! Comparing this new processor against the old single core 700Mhz ARM11, on paper we have a significantly greater amount of processing power on offer! To support the new CPU we have 1GB of 450Mhz RAM, increased from the 512MB 400Mhz RAM used on the B+


So this increase in specification means a higher price, right?


Wrong!


The Raspberry Pi 2 remains the same price as the B+! A major achievement for the Foundation.


 

Comparison of recent Raspberry Pi Models

 

 

Raspberry Pi 2

Raspberry Pi B+

Raspberry Pi A+

SoC

BCM2836

BCM2835

BCM2835

CPU

ARM7

ARM11

ARM11

RAM

1GB

512MB

256MB

GPU

VideoCoreIV

VideoCoreIV

VideoCoreIV

GPIO

40 Pins

40 Pins

40 Pins

Ethernet

10/100 Ethernet

10/100 Ethernet

NONE

USB

4 Ports

4 Ports

1 Port

Storage

Micro SD

Micro SD

Micro SD

Camera Interface

Yes

Yes

Yes

Display Interface

Yes

Yes

Yes

 

Physically the Raspberry Pi 2 has exactly the same dimensions as the B+, meaning that 99% of cases that fit the B+ will fit Pi 2.

 

 

GPIO


The Raspberry Pi 2 also comes with the same 40 pin GPIO (General Purpose Input  Output) that was introduced with the B+. The pin mapping is identical for the Pi2, B+ and A+ boards enabling projects and add on boards to be interchanged between each of the boards. Boards that were also designed for the A and B series Pis will also work with the Raspberry Pi 2, but the caveat is that they must fit within the layout of the B+ shape board, so boards such as Piface Digital will not work, hence the team have created a new version of their board.


The Raspberry Pi 2 also complies with the HAT (Hardware Attached on Top) standard, enabling future add on boards to use an EEPROM (Electrically Erasable Programmable Read Only Memory) which can communicate with the Raspberry Pi 2 in order to configure the Pi ready to use the device. The HAT standard was introduced with the B+ in 2014 and as yet it has not been fully implemented but will be in the near future.

 

 

Test Baseline


The Raspberry Pi 2 is a seriously well specified single board computer and has enough processing power to easily be used as a standard PC, but how can we quantify that? Bring on the benchmarks!

 

How we tested


For each Raspberry Pi tested we used the 8GB Micro SD card that came with each of the boards. We ran the Raspbian operating system and launched all tests from the desktop. The software for each Raspberry Pi was upgraded to the latest version using

 

 

sudo apt-get update && sudo apt-get upgrade

 

The only necessary difference between the Raspberry Pi 2 and the B+ tested lies in the kernel image used. In the boot partition of the micro SD card lies kernel.img which is compatible with the ARM11 CPU used in the previous Raspberry Pi models. For the Raspberry Pi 2 the Foundation have switched to an ARM 7 CPU, and this requires a new kernel image, kernel7.img in order to fully use all four CPU cores.

 

So let us start our series of tests.

 

Boot Times

 

We tested the stock Raspbian install on both the Raspberry Pi 2 and the B+ focusing on booting to the login prompt.

 

 

Boot to prompt

Time Taken

Raspberry Pi 2

17 seconds

Raspberry Pi B+

33 Seconds

 

Clearly we can see that the Raspberry Pi 2 boots in around half the time of the B+ which is a remarkable speed increase.


We next altered the boot configuration via raspi-config, so that both Raspberry Pi boot straight to the desktop (which will become the default action in future versions of Raspbian).


The times were:

 

Boot to desktop

Time Taken

Raspberry Pi 2

21 seconds

Raspberry Pi B+

42 seconds

 

Again we see that the Raspberry Pi 2 is around double the speed of the B+, and this is before any enhancements are made to really take the Raspberry Pi 2 to full speed.

 

Compute Prime to 20000

 

Next we wanted to push both Raspberry Pi to their limits and fortunately there is a great tool to test any Linux computer, sysbench. Sysbench has a full suite of tests that can be run to determine the limits of your computer.

 

To install sysbench on your Raspberry Pi, open LXTerminal and type

 

sudo apt-get install sysbench


One of the best tests is for brute CPU processing power and to run this test via sysbench type the following into LXTerminal

 

sysbench --num-threads=4 --test=cpu --cpu-max-prime=20000 run


Results


Version

Time Taken

Raspberry Pi 2

  1. 195.9543 seconds / 3 minutes 16 seconds

Raspberry Pi B+

  1. 1331.6552 seconds / 22 minutes 12 seconds

 

This test stresses the ARM CPU to 100% to calculate all the prime numbers up to 20000. As you can see, the Raspberry Pi 2 is the clear winner with a time of 3 minutes 16 seconds versus the B+ at 22 minutes 12 seconds. This really shows how powerful the CPU at the heart of Raspberry Pi 2 is.

 

For our second test we ran an application called memtester.


Memtester checks the memory installed on a computer for any faults, it runs a number of integrity checks that push the RAM to it’s limits. Ordinarily this test just performs this action and reports back, but to test how fast the test could be completed we used the time command, to time how long the process took.

To install these applications, open LXTerminal and type

 

sudo apt-get install memtester

sudo apt-get install time

 

With the applications installed run the following command in LXTerminal

 

sudo time memtester 256M 1

 

This runs memtester with superuser powers, this is necessary to make sure that the chunk of RAM that we wish to test is locked only to us. In this case we are checking 256MB of RAM, and the test will only run once. The time command runs before memtester to tell Raspbian that we wish to time the operation. You will notice that the test is only run on 256MB of RAM and not the full allocation present on the Raspberry Pi. This is simply because we cannot gain access to all of the RAM once the operating system is loaded as it allocates a portion of RAM for itself. (To run a full test of every single megabyte of RAM we would need to use a tool like Memtest86, which runs before the operating system is loaded. Sadly, this application is not available for the Raspberry Pi.)

 

 

Version

Time Taken

Raspberry Pi 2

  1. 1560.99 / 26 minutes 1 second

Raspberry Pi B+

  1. 4208.09 seconds / 1hr 10 minutes 8 seconds

 

The Raspberry Pi 2 handled this task in 26 minutes 1 second, 44 minutes and 7 seconds quicker than the Raspberry Pi B+, quite a remarkable achievement!

 

The Raspberry Pi Foundation are keen to point out that this is the Raspberry Pi that they wanted to release many years ago, but it has taken two years of research and development at a cost of around £3 Million, to fully realise their dream.

 

To round off our investigation we also ran a few more tests to see how quickly the new Raspberry Pi 2 could handle day to day tasks.

 

 

Application

Raspberry Pi 2

Raspberry Pi B+

Minecraft - Load a new world

21 seconds

42 seconds

Python 3 - Open Application

4 seconds

13 seconds

Sonic Pi 2 - Open Application

11 seconds

21 seconds

Libreoffice - Open a new text document

9 seconds

18 seconds

Epiphany Browser - To Google

8 seconds

13 seconds

 


Conclusion


These tests show that the new Raspberry Pi 2 is a much more powerful computer. It can perform better than its predecessors but still comes in at a bargain price. In fact, the Raspberry Pi 2 rarely went “full throttle” in fact. Even when opening Minecraft-- a very CPU intensive task --CPU usage rarely went above 50%. (Compare this to the B+ which went to 100% when opening Minecraft.) Does this spell the end of the B+ and A+? Not at all-- there is still a market for these boards, especially for industrial applications that do not require the raw power of the Raspberry Pi 2. In fact, there are a number of great robotics projects being forged with the A+ at it’s heart.

 

As you can see from the tests above the new Raspberry Pi 2 is a beast of a single board computer and it will become the new foundation for a new future full of great projects-- all powered by a credit card sized computer that was dreamt of in Cambridge.


About the author:


Les Pounder is an author and trainer specialising in the Raspberry Pi. He is part of the Raspberry Pi Foundation's training team delivering training to teachers across the United Kingdom. He has a blog at http://bigl.es and is @biglesp on Twitter.

  • raspberry_pi_space
  • raspberry-pi-2
  • pi_2_feb13
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • e14 Contributor
    e14 Contributor over 11 years ago +1
    Nitpick. The Pi 2 actually did the memtest in 37% of the time of the Pi B+, rather than less than 1/4. Most of these tasks appear to be limited by how many cores they use (in most cases 2, and 4 for Python…
  • biglesp
    biglesp over 11 years ago in reply to e14 Contributor

    Thanks Jim will correct that part image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bzoltick
    bzoltick over 11 years ago

    I have a 3 year old Dell Latitude E6530 laptop with an Intel i5-3320M CPU running Ubuntu 14.04.1 LTS (an absolutely wonderful version of Linux).

    I ran the same two benchmarks on my laptop to see how the new Raspberry Pi 2 compares to a 3 year old Intel laptop processor.

     

    The output of running sysbench with the same options is: 32.5 s

    This is about 27 times faster!

     

    ____________________________________

     

    electronics/home/brad> sysbench --test=cpu --cpu-max-prime=20000 run

    sysbench 0.4.12:  multi-threaded system evaluation benchmark


    Running the test with following options:

    Number of threads: 1

    Doing CPU performance benchmark

    Threads started!

    Done.

    Maximum prime number checked in CPU test: 20000

    Test execution summary:

        total time:                          32.5612s

        total number of events:              10000

        total time taken by event execution: 32.5600

        per-request statistics:

             min:                                  3.24ms

             avg:                                  3.26ms

             max:                                  7.14ms

             approx.  95 percentile:               3.26ms

    Threads fairness:

        events (avg/stddev):           10000.0000/0.00

        execution time (avg/stddev):   32.5600/0.00

    _________________________________________

     

    memtester produced the following output: 1m 28s

    This is about 18 times faster.

    _________________________________

    root@electronics:/home/brad# time memtester 256M 1

    memtester version 4.3.0 (64-bit)

    Copyright (C) 2001-2012 Charles Cazabon.

    Licensed under the GNU General Public License version 2 (only).

     

    pagesize is 4096

    pagesizemask is 0xfffffffffffff000

    want 256MB (268435456 bytes)

    got  256MB (268435456 bytes), trying mlock ...locked.

    Loop 1/1:

      Stuck Address       : ok        

      Random Value        : ok

      Compare XOR         : ok

      Compare SUB         : ok

      Compare MUL         : ok

      Compare DIV         : ok

      Compare OR          : ok

      Compare AND         : ok

      Sequential Increment: ok

      Solid Bits          : ok        

      Block Sequential    : ok        

      Checkerboard        : ok        

      Bit Spread          : ok        

      Bit Flip            : ok        

      Walking Ones        : ok        

      Walking Zeroes      : ok        

      8-bit Writes        : ok

      16-bit Writes       : ok

    Done.

    real    1m28.851s

    user    1m28.348s

    sys     0m0.216s

    __________________________________

     

    Granted, it is not a fair comparison between a $35 SOC with a laptop that costs more than $1000.

    The Raspberry PI 2 will be great for interacting with the world, using sensors and actuators to monitor and control your environment.

    It is a wonderful platform to teach the next generation how to program in C, Python and JavaScript to control an incredibly small standalone computer.

    But it does not come close with the processing capabilities of a 3 year old Intel laptop CPU.

     

    Brad

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago

    What are your overclock settings?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago

    Nitpick. The Pi 2 actually did the memtest in 37% of the time of the Pi B+, rather than less than 1/4.

     

    Most of these tasks appear to be limited by how many cores they use (in most cases 2, and 4 for Python?), and how the memory bus is shared. Amdahl's law takes over after a while - the slowest thread limits the application as a whole. The main advantage will come when running multiple tasks or doing something that hammers a processor without touching the bus, but many of those tasks are already running on the VideoCore.

     

    But anyway. It's wonderful to see that we now get a Pi that should live up to the promise. The old one was always just a little...disappointing.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to biglesp

    thanks for the info. I read that they suggest 1.8 A pwr supply, I guess it's because when al the 4 cores are running they drain a lot. It think I'll buy one, alsa because I'll need to use the Pi with a wifi adapter, which on boot takes extra ampere...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • derricknewark
    derricknewark over 11 years ago in reply to e14 Contributor

    Went through the initial setup for the pi 2 this afternoon. I only had a 1 amp power adapter but was able to get it to turn on. I had a keyboard, mouse and Ethernet cable connected to the board. To be safe, I'd highly recommend getting the 1.8A rated power adapter as stated in the specs. I was able to get on YouTube and play a couple of videos.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago

    I see no mandatory changes by replacing a B+ board with a Pi 2 board, software or hardware.  Even your favourite B+ enclosure will work for Pi 2 as the form factor is identical.  The nice-to-have changes are in software to take advantage of the ARMv7 CPU - need to recompile with `gcc` on the ARMv7 base OS.  I am really looking forward to taking this out for a spin - maybe set up a media server for my "media room"!

     

    See http://www.raspberrypi.org/downloads/.  A word of caution about which Linux distro to use on new hardware: If you want to focus on an application project (scientific analysis, ham radio, etc.), you might want to stick with a stable (as opposed to "alpha") OS base for the time being.  Alpha distros can be rather 'exciting' (and distracting) with new hardware until that distro has advanced to stable version.  Of course, if your intent is to help debug an alpha or beta, please carry on and thank you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • biglesp
    biglesp over 11 years ago in reply to Matt

    According to Eben the power consumption is comparable to a B+, that is until you push the Pi to use all four cores, and then it will consume more power.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Matt
    Matt over 11 years ago

    It'd be interesting to see if power consumption is much different when doing certain operations.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • biglesp
    biglesp over 11 years ago in reply to e14 Contributor

    Hi

     

    Any power adaptor that has been used successfully on the older Raspberry Pi can be used with the new Pi 2.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube