Raspberry Pi 3 out, what’s the difference? A simple comparison chart and some references.

Raspberry Pi 3 is out today (RASPBERRY PI 3 ON SALE NOW AT $35, 29 February 2016), it’s been almost 4 years since I have my first Raspberry Pi, the Raspberry Pi Model B, with has only 256MB ram, now the Raspberry Pi 3 comes with the same price – $35, but much more powerful, including Quad-core 64-bit ARM Cortex A53 clocked at 1.2 GHz, built in 802.11n WiFi and Bluetooth 4.1 LE, and fully compatible with the previous version(s)! No more usb WiFi / Bluetooth dongle from now on also means we don’t need to be worried about the compatible of the WiFi/BT chip and Pi, also save us 2 USB ports, that’s very nice! Let’s take a look at it now:

Here is a photo of Raspberry Pi 3, almost the same look as Pi 2:

(Raspberry Pi 3 picture original from RS online: http://uk.rs-online.com/web/p/processor-microcontroller-development-kits/8968660/)

Another pic with some notes:

(From the link of Raspberry Pi 3 diagram on RS online Raspberry Pi 3 page)

To make it easier to be compared, I made a simple comparison chart by myself, to compare the difference between Raspberry Pi 3 and all the Raspberry Pi models I have:

Raspberry Pi 3 Model BRaspberry Pi 2 Model BRaspberry Pi Model B+Raspberry Pi Model B
ReleaseFeb 2016Feb 2015July 2014April 2012
Processor ChipsetBCM2837BCM2836BCM2835
Processor CoreARM Cortex-A53ARM Cortex-A7ARM11
Processor ArchARMv8 quad core 64BitARMv7 quad core 32BitARMv6 single core 32Bit
Processor Speed1.2 GHz0.9 GHz0.7 GHz
RAM1 GB0.5 GB0.5 GB (rev 2) / 0.25 GB (rev 1)
StorageMicroSDSD card
USB 2.04x USB Ports2x USB Ports
Max Power Draw (@5V)2.5 A1.8 A1.2 A
GPIO40 pin26 Pin
Ethernet Port10/100 Mbit Ethernet
WiFiBuilt inNo
Bluetooth LEBuilt inNo
CommentsThe latest version~6x faster, Free Win10 IoT!More USBs and GPIOThe original RPi

(If there are mistakes, feel free to tell me)

閱讀全文

Sam Smith – Writing’s On The Wall

Writing’s on the Wall, by Sam Smith, from 007 Spectre, 88th (2015) Academy Award for Best Original Song Nominees.

Spectre poster:

Cover:

MV:

Live On The Graham Norton Show:

lyrics:

I’ve been here before
But always hit the floor
I’ve spent a lifetime running
And I always get away
But with you I’m feeling something
That makes me want to stay

I’m prepared for this
I never shoot to miss
But I feel like a storm is coming
If I’m gonna make it through the day
Then there’s no more use in running
This is something I gotta face

If I risk it all
Could you break my fall?

How do I live? How do I breathe?
When you’re not here I’m suffocating
I want to feel love, run through my blood
Tell me is this where I give it all up?
For you I have to risk it all
Cause the writing’s on the wall

A million shards of glass
That haunt me from my past
As the stars begin to gather
And the light begins to fade
When all hope begins to shatter
Know that I won’t be afraid

If I risk it all
Could you break my fall?

How do I live? How do I breathe?
When you’re not here I’m suffocating
I want to feel love, run through my blood
Tell me is this where I give it all up?
For you I have to risk it all
Cause the writing’s on the wall

The writing’s on the wall

How do I live? How do I breathe?
When you’re not here I’m suffocating
I want to feel love, run through my blood
Tell me is this where I give it all up?
How do I live? How do I breathe?
When you’re not here I’m suffocating
I want to feel love, run through my blood
Tell me is this where I give it all up?
For you I have to risk it all
Cause the writing’s on the wall

cdnjs git repositories visualization using gource

Gource is a famous version control visualization tool, supports git, svn, hgbzr and cvs2cl, I tried to use gource to visualize the CDNJS development history, and here are the videos I uploaded to youtube.

CDNJS main repository:
(https://github.com/cdnjs/cdnjs)

https://www.youtube.com/watch?v=ehwK-KM4uYQ

CDNJS new-website repository:
(https://github.com/cdnjs/new-website)

https://www.youtube.com/watch?v=GLH7Ovzi5z8

閱讀全文

Raspberry Pi (1) Model B+ basic benchmarks

hmmmm … I’ve made some simple and basic benchmarks on Roseapple Pi and Raspberry Pi 2, so here come the very late benchmarks(HardinfosysbenchPHP benchmark Script) on the first generation Raspberry Pi. Actually, I bought the Raspberry Pi Model B very early, and the experience about the performance of it is not so good, to do some benchmarks is just for understanding the performance difference.

I’m using Model B+ here, which has the same chip Broadcom BCM2835 as Model be does, although it has larger main memory than Model A+, due to the benchmarks are very simple, and focus on CPU, so I don’t expect a notable performance difference between model A+ and B+(or model B).

The post about Roseapple Pi benchmark:

https://www.peterdavehello.org/2016/02/roseapple-pi-%E8%93%AE%E9%9C%A7%E6%B4%BE-%E6%95%88%E8%83%BD%E7%B0%A1%E6%B8%AC-benchmark/

The post about Raspberry Pi 2 model B benchmark:

https://www.peterdavehello.org/2016/02/raspberry-pi-2-model-b-basic-benchmark/

In this post, the platform is Raspberry Pi (1st gen) model B+ using Raspbian Jessie.

The info of the Raspbian image I used:

Version: February 2016
Release date: 2016-02-09
Kernel version: 4.1

Here are the test results:

PHP benchmark Script using PHP 5.6.17:

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2016-02-23 16:52:32
Server : @
PHP version : 5.6.17-0+deb8u1
Platform : Linux
--------------------------------------
test_math                 : 58.099 sec.
test_stringmanipulation   : 60.542 sec.
test_loops                : 14.272 sec.
test_ifelse               : 9.324 sec.
--------------------------------------
Total time:               : 142.237 sec.

PHP benchmark Script using PHP 7.0.3:

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2016-02-23 17:38:50
Server : @
PHP version : 7.0.3-3
Platform : Linux
--------------------------------------
test_math                 : 16.502 sec.
test_stringmanipulation   : 21.361 sec.
test_loops                : 6.884 sec.
test_ifelse               : 4.747 sec.
--------------------------------------
Total time:               : 49.494 sec.

sysbench v0.4.12 single thread:
(Raspberry Pi 1st gen has only one core, so no multi threads benchmark here)

$ 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:                          1331.8571s
    total number of events:              10000
    total time taken by event execution: 1331.7993
    per-request statistics:
         min:                                132.02ms
         avg:                                133.18ms
         max:                                274.74ms
         approx.  95 percentile:             138.84ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   1331.7993/0.00

閱讀全文