Pystone is a Python Dhrystone, and Dhrystone is "a synthetic computing benchmark program developed in 1984 by Reinhold P. Weicker intended to be representative of system (integer) programming." (source: https://en.wikipedia.org/wiki/Dhrystone)
Showing the Pystone performance will give an indication of the SAB, par2 and unrar performance you can expect, and an answer to questions like "why does XYZ take so long?".
On Linux, pystone is included in the Python install (for example: /usr/lib/python2.7/test/pystone.py). I don't know about OSX and Windows.
Code: Select all
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import test.pystone
>>> int(test.pystone.pystones(1000)[1])
22353
>>>
I've written some lines in SABnzbd.py, and the sabnzbd.log is now:
Code: Select all
2014-10-12 10:03:45,920::DEBUG::[SABnzbd:1283] My IPv4 address = 192.168.1.58
2014-10-12 10:03:45,951::DEBUG::[SABnzbd:1292] My IPv6 address = 2001:aaa::4ea1:ad57:5619
2014-10-12 10:03:46,016::DEBUG::[SABnzbd:1301] CPU Pystone available performance is 22977
2014-10-12 10:03:46,017::DEBUG::[SABnzbd:1306] CPU model name is Intel(R) Atom(TM) CPU N270 @ 1.60GHz
I'll do some more tests.
EDIT
On my Linux VPS:
Code: Select all
2014-10-12 12:38:26,478::DEBUG::[SABnzbd:1306] CPU Pystone available performance is 83028
2014-10-12 12:38:26,479::DEBUG::[SABnzbd:1310] CPU model name is Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
Code: Select all
2014-10-12 12:44:32,128::DEBUG::[SABnzbd:1306] CPU Pystone available performance is 5555
2014-10-12 12:44:32,132::DEBUG::[SABnzbd:1310] CPU model name is ARMv6-compatible processor rev 7 (v6l)
Code: Select all
2014-10-12 19:58:59,553::DEBUG::[SABnzbd:1306] CPU Pystone available performance is 78486
2014-10-12 19:58:59,554::DEBUG::[SABnzbd:1310] CPU model name is Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Code: Select all
2014-10-17 23:10:17,945::DEBUG::[SABnzbd:1306] CPU Pystone available performance is 16666
2014-10-17 23:10:17,947::DEBUG::[SABnzbd:1310] CPU model name is ARMv7 Processor rev 10 (v7l)
Code on my github:
https://github.com/sanderjo/sabnzbd/com ... 87f7f04142