I should mention that Jython is now supported in the threads module of PyCSP.
Currently available in svn trunk.
Notice in the Commstime benchmark that PyCSP benefits from
multithreading and jit compilation in Jython.
$ java -jar ~/jython2.5.1/jython.jar Commstime.py threads
Using version (0, 7, 1, 'threads')
----------- run 1/10 -------------
Running commstime test
DT = 2.153000.
Time per ch : 2.153000/(4*5000) = 0.000108 s = 107.650006 us
consumer done, posioning channel
----------- run 2/10 -------------
Running commstime test
DT = 0.888000.
Time per ch : 0.888000/(4*5000) = 0.000044 s = 44.399989 us
consumer done, posioning channel
----------- run 3/10 -------------
Running commstime test
DT = 0.995000.
Time per ch : 0.995000/(4*5000) = 0.000050 s = 49.750006 us
consumer done, posioning channel
----------- run 4/10 -------------
Running commstime test
DT = 0.855000.
Time per ch : 0.855000/(4*5000) = 0.000043 s = 42.750001 us
consumer done, posioning channel
----------- run 5/10 -------------
Running commstime test
DT = 0.827000.
Time per ch : 0.827000/(4*5000) = 0.000041 s = 41.349995 us
consumer done, posioning channel
----------- run 6/10 -------------
Running commstime test
DT = 0.818000.
Time per ch : 0.818000/(4*5000) = 0.000041 s = 40.899992 us
consumer done, posioning channel
----------- run 7/10 -------------
Running commstime test
DT = 0.825000.
Time per ch : 0.825000/(4*5000) = 0.000041 s = 41.250002 us
consumer done, posioning channel
----------- run 8/10 -------------
Running commstime test
DT = 0.897000.
Time per ch : 0.897000/(4*5000) = 0.000045 s = 44.850004 us
consumer done, posioning channel
----------- run 9/10 -------------
Running commstime test
DT = 0.861000.
Time per ch : 0.861000/(4*5000) = 0.000043 s = 43.050003 us
consumer done, posioning channel
----------- run 10/10 -------------
Running commstime test
DT = 0.834000.
Time per ch : 0.834000/(4*5000) = 0.000042 s = 41.700006 us
consumer done, posioning channel
Cheers,
Rune
On Jun 11, 8:26 am, Arthur Edelstein <arthuredelst...@gmail.com> wrote: