Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add remaining Comm bindings and examples
[simgrid.git] / examples / python / comm-pingpong / comm-pingpong.tesh
1 #!/usr/bin/env tesh
2
3 p Testing with default compound
4
5 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/comm-pingpong.py --platform ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
6 >[  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
7 >[  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
8 >[  0.019014] (2:ponger@Jupiter) Payload received : small communication (latency bound)
9 >[  0.019014] (2:ponger@Jupiter) Ping time (latency bound) 0.019
10 >[  0.019014] (2:ponger@Jupiter) payload = 0.019
11 >[150.178356] (1:pinger@Tremblay) Payload received : large communication (bandwidth bound)
12 >[150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
13 >[150.178356] (0:maestro@) Total simulation time: 150.178
14
15 p Testing with default compound Full network optimization
16
17 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/comm-pingpong.py --platform ${platfdir}/small_platform.xml "--cfg=network/optim:Full" "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
18 >[  0.000000] (0:maestro@) Configuration change: Set 'network/optim' to 'Full'
19 >[  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
20 >[  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
21 >[  0.019014] (2:ponger@Jupiter) Payload received : small communication (latency bound)
22 >[  0.019014] (2:ponger@Jupiter) Ping time (latency bound) 0.019
23 >[  0.019014] (2:ponger@Jupiter) payload = 0.019
24 >[150.178356] (1:pinger@Tremblay) Payload received : large communication (bandwidth bound)
25 >[150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
26 >[150.178356] (0:maestro@) Total simulation time: 150.178