/[escript]/trunk/escript/py_src/benchmark.py
ViewVC logotype

Diff of /trunk/escript/py_src/benchmark.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 458 by gross, Tue Jan 24 06:20:50 2006 UTC revision 462 by gross, Wed Jan 25 00:02:03 2006 UTC
# Line 26  __url__="http://www.iservo.edu.au/esys/e Line 26  __url__="http://www.iservo.edu.au/esys/e
26  __version__="$Revision:$"  __version__="$Revision:$"
27  __date__="$Date:$"  __date__="$Date:$"
28    
29  import os,socket,time,sys  import os,socket,time,sys,traceback
30  from esys.escript import setNumberOfThreads  from esys.escript import setNumberOfThreads
31    
32  class BenchmarkSuite(object):  class BenchmarkSuite(object):
# Line 214  class Benchmark(object): Line 214  class Benchmark(object):
214                    try:                    try:
215                       row.append(r.run(p))                       row.append(r.run(p))
216                    except:                    except:
217                         traceback.print_exc(file=sys.stdout)
218                       row.append(None)                       row.append(None)
219                t0=time.time()-t0                t0=time.time()-t0
220                print "%s with %s threads finished (walltime =%s sec)."%(r.__class__,s,t0)                print "%s with %s threads finished (walltime =%s sec)."%(r.__class__,s,t0)

Legend:
Removed from v.458  
changed lines
  Added in v.462

  ViewVC Help
Powered by ViewVC 1.1.26