Skip to content

Commit 2ac85c9

Browse files
committed
added sync before internal import benchmark for python
1 parent 2414d9b commit 2ac85c9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test_python_importer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
from mpi4py import MPI
21
import time
2+
full_start = time.time()
3+
4+
from mpi4py import MPI
35

6+
MPI.COMM_WORLD.Barrier()
47
t = time.time()
58
from clawpack import pyclaw
69
MPI.COMM_WORLD.Barrier()
710
elapsed = time.time() - t
11+
full_elapsed = time.time() - full_start
812

913
if (MPI.COMM_WORLD.rank == 0):
10-
print "elapsed time: %f" % elapsed
14+
print "elapsed time (import): %f" % elapsed
15+
print "elapsed time (full): %f" % full_elapsed

0 commit comments

Comments
 (0)