1
# Performance test for running
3
# 1. Regular TriaxialTest with 3 independent dispatchers (geom, phys, constitutive law)
4
# 2. TriaxialTest with InteractionLoop (common loop and functor cache)
6
# Run the test like this:
8
# yade-trunk-opt-multi -j1 triax-perf.table triax-perf.py
10
# The -j1 ensures that only 1 job will run at time
11
# (even if other cores are free, access to memory is limiting if running multiple jobs at time)
13
# You have to collect the results by hand from log files, or run sh mkTextTable.sh and use
14
# triax-perf.ods to get comparison
16
utils.readParamsFromTable(fast=False,noTableOk=True)
17
TriaxialTest(numberOfGrains=50000,fast=fast,noFiles=True).load()
18
O.run(10,True) # filter out initialization
21
from yade import timing
23
print 'ForceContainer synced %d times'%(O.bexSyncCount)