Created
March 30, 2015 22:18
-
-
Save skelliam/48556ce7574d0fdec393 to your computer and use it in GitHub Desktop.
Test vw.py in Python interpreter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi ~/Projects/vwire_python $ 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. | |
>>> import vw | |
>>> import pigpio | |
>>> RX = 13 | |
>>> BPS=2000 | |
>>> pi = pigpio.pi() | |
>>> rx = vw.rx(pi, RX, BPS) | |
>>> | |
---- in separate ssh session w/ the same Pi ---- | |
pi@raspberrypi ~/Projects/vwire_python $ sysbench --test=cpu --num-threads=4 --cpu-max-prime=2000 run | |
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 4 | |
Doing CPU performance benchmark | |
Threads started! | |
Done. | |
Maximum prime number checked in CPU test: 2000 | |
Test execution summary: | |
total time: 131.4233s | |
total number of events: 10000 | |
total time taken by event execution: 524.8912 | |
per-request statistics: | |
min: 21.56ms | |
avg: 52.49ms | |
max: 118.07ms | |
approx. 95 percentile: 57.58ms | |
Threads fairness: | |
events (avg/stddev): 2500.0000/2.12 | |
execution time (avg/stddev): 131.2228/0.02 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment