Advertisement
Guest User

Odroid-C1 va Raspi Pystone test

a guest
Jan 30th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. Quick comparison of pystone (Python's speed) benchmarking for python 2 and 3 on both Raspberry Pi and Odroid-C1
  2. ================================================================================================================
  3. Raspi is running raspbian, OdroidC1 is running Lubuntu.
  4.  
  5. python3 -> pystone(Odroid) / Pystone(Rpi) = 13k / 3.2k= 4.1 => Odroid seems ~4x times faster for python3
  6. python2 -> pystone(Odroid) / Pystone(Rpi) = 22k / 4.7k = 4.7 => Odroid seems ~4.5x times faster for python
  7.  
  8. Notes:
  9. I used system's default python (Cpython)
  10. Python3's minors versions, as gcc, are different on the two machine.
  11.  
  12.  
  13. Details:
  14. odroid@odroid_c1:~/kallithea$ uname -a
  15. Linux odroid_c1 3.10.66-46 #1 SMP PREEMPT Wed Jan 28 18:35:54 BRST 2015 armv7l armv7l armv7l GNU/Linux
  16. odroid@odroid_c1:~/kallithea$ cat /etc/apt/sources.list
  17. # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
  18. # newer versions of the distribution.
  19. deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
  20. deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
  21. [...]
  22.  
  23. -> Lubuntu 14.4
  24.  
  25. pi@raspberrypi ~ $ uname -a
  26. Linux raspberrypi 3.12.36+ #737 PREEMPT Wed Jan 14 19:40:07 GMT 2015 armv6l GNU/Linux
  27. pi@raspberrypi ~ $ cat /etc/apt/sources.list
  28. deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
  29. -> raspbian
  30.  
  31. pi@raspberrypi ~ $ python3
  32. Python 3.2.3 (default, Mar 1 2013, 11:53:50)
  33. [GCC 4.6.3] on linux2
  34. Type "help", "copyright", "credits" or "license" for more information.
  35. >>> from test import pystone
  36. >>> pystone.main()
  37. Pystone(1.1) time for 50000 passes = 15.46
  38. This machine benchmarks at 3234.15 pystones/second
  39. >>> pystone.main()
  40. Pystone(1.1) time for 50000 passes = 15.49
  41. This machine benchmarks at 3227.89 pystones/second
  42. >>>
  43.  
  44. pi@raspberrypi ~ $ python
  45. Python 2.7.3 (default, Mar 18 2014, 05:13:23)
  46. [GCC 4.6.3] on linux2
  47. Type "help", "copyright", "credits" or "license" for more information.
  48. >>> from test import pystone
  49. >>> pystone.main()
  50. Pystone(1.1) time for 50000 passes = 10.57
  51. This machine benchmarks at 4730.37 pystones/second
  52. >>> pystone.main()
  53. Pystone(1.1) time for 50000 passes = 10.6
  54. This machine benchmarks at 4716.98 pystones/second
  55.  
  56.  
  57. odroid@odroid_c1:~/Desktop$ python3
  58. Python 3.4.0 (default, Apr 11 2014, 13:11:48)
  59. [GCC 4.8.2] on linux
  60. Type "help", "copyright", "credits" or "license" for more information.
  61. >>> from test import pystone
  62. >>> pystone.main()
  63. Pystone(1.1) time for 50000 passes = 3.75898
  64. This machine benchmarks at 13301.5 pystones/second
  65. >>> pystone.main()
  66. Pystone(1.1) time for 50000 passes = 3.74707
  67. This machine benchmarks at 13343.8 pystones/second
  68. >>> pystone.main()
  69. Pystone(1.1) time for 50000 passes = 3.80389
  70. This machine benchmarks at 13144.4 pystones/second
  71. >>>
  72.  
  73. odroid@odroid_c1:~/Desktop$ python
  74. Python 2.7.6 (default, Mar 22 2014, 23:30:12)
  75. [GCC 4.8.2] on linux2
  76. Type "help", "copyright", "credits" or "license" for more information.
  77. >>> from test import pystone
  78. >>> pystone.main()
  79. Pystone(1.1) time for 50000 passes = 2.24704
  80. This machine benchmarks at 22251.5 pystones/second
  81. >>> pystone.main()
  82. Pystone(1.1) time for 50000 passes = 2.26279
  83. This machine benchmarks at 22096.6 pystones/second
  84. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement