Ok. Using this simple C code:-
// Display the numbers 1 through 10
for(count = 1; count <= 10; count++)
printf(“%d “, count);
and running on Pi Model B – 512MB memory using time command displays these results:-
sys 1m5.940s (so it took just under 4 mins in real time to reach a million).
On Pi2 – 1GB memory using time command displays:-
sys 0m8.000s (so it took a little over 10 seconds!).
Clearly one must take into account the CPU speed which on Pi2 is 900MHz quad-core compared to 700MHz with a floating point.