Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update platfrom version to 3.
[simgrid.git] / examples / ruby / PingPong.tesh
1 #PingPong Example
2
3 # This setenv and the -I arg are mandatory until the make install only
4 ! setenv RUBYLIB=../../lib
5
6 $ ruby -I ../../src/bindings/ruby PingPong.rb
7 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] Hello from Sender
8 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] Host count :1
9 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] sender time :0.0
10 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] task created :PingTask
11 > [Bellevue:Receiver:(2) 0.000000] [ruby/INFO] Hello from Receiver
12 > [Inmos:Sender:(1) 0.015501] [ruby/INFO] Bye!!
13 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Got at time: 0.0155013008533275
14 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Was sent at time 0.0
15 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Communication Time: 0.0155013008533275
16 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] --- bw 6451071490.46357 ----
17 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Bye!!