Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Quick comparison of pystone (Python's speed) benchmarking for python 2 and 3 on both Raspberry Pi and Odroid-C1
- ================================================================================================================
- Raspi is running raspbian, OdroidC1 is running Lubuntu.
- python3 -> pystone(Odroid) / Pystone(Rpi) = 13k / 3.2k= 4.1 => Odroid seems ~4x times faster for python3
- python2 -> pystone(Odroid) / Pystone(Rpi) = 22k / 4.7k = 4.7 => Odroid seems ~4.5x times faster for python
- Notes:
- I used system's default python (Cpython)
- Python3's minors versions, as gcc, are different on the two machine.
- Details:
- odroid@odroid_c1:~/kallithea$ uname -a
- Linux odroid_c1 3.10.66-46 #1 SMP PREEMPT Wed Jan 28 18:35:54 BRST 2015 armv7l armv7l armv7l GNU/Linux
- odroid@odroid_c1:~/kallithea$ cat /etc/apt/sources.list
- # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
- # newer versions of the distribution.
- deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
- deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
- [...]
- -> Lubuntu 14.4
- pi@raspberrypi ~ $ uname -a
- Linux raspberrypi 3.12.36+ #737 PREEMPT Wed Jan 14 19:40:07 GMT 2015 armv6l GNU/Linux
- pi@raspberrypi ~ $ cat /etc/apt/sources.list
- deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
- -> raspbian
- pi@raspberrypi ~ $ python3
- Python 3.2.3 (default, Mar 1 2013, 11:53:50)
- [GCC 4.6.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from test import pystone
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 15.46
- This machine benchmarks at 3234.15 pystones/second
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 15.49
- This machine benchmarks at 3227.89 pystones/second
- >>>
- pi@raspberrypi ~ $ python
- Python 2.7.3 (default, Mar 18 2014, 05:13:23)
- [GCC 4.6.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from test import pystone
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 10.57
- This machine benchmarks at 4730.37 pystones/second
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 10.6
- This machine benchmarks at 4716.98 pystones/second
- odroid@odroid_c1:~/Desktop$ python3
- Python 3.4.0 (default, Apr 11 2014, 13:11:48)
- [GCC 4.8.2] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from test import pystone
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 3.75898
- This machine benchmarks at 13301.5 pystones/second
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 3.74707
- This machine benchmarks at 13343.8 pystones/second
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 3.80389
- This machine benchmarks at 13144.4 pystones/second
- >>>
- odroid@odroid_c1:~/Desktop$ python
- Python 2.7.6 (default, Mar 22 2014, 23:30:12)
- [GCC 4.8.2] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from test import pystone
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 2.24704
- This machine benchmarks at 22251.5 pystones/second
- >>> pystone.main()
- Pystone(1.1) time for 50000 passes = 2.26279
- This machine benchmarks at 22096.6 pystones/second
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement