/[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 434 by gross, Thu Jan 19 01:53:16 2006 UTC revision 435 by gross, Thu Jan 19 03:57:30 2006 UTC
# Line 207  class Benchmark(object): Line 207  class Benchmark(object):
207               s=scale               s=scale
208            row=[]            row=[]
209            if s>0:            if s>0:
210                print "run %s with %s threads"%(r.__class__,s)                t0=time.time()
211                  print "%s with %s threads started."%(r.__class__,s)
212                for p in self.__options:                for p in self.__options:
213                    setNumberOfThreads(s)                    setNumberOfThreads(s)
214                    row.append(r.run(p))                    row.append(r.run(p))
215                  t0=time.time()-t0
216                  print "%s with %s threads finished (walltime =%s sec)."%(r.__class__,s,t0)
217            self.__results.append(row)            self.__results.append(row)
218     def getHTML(self,filter,level=1):     def getHTML(self,filter,level=1):
219         """         """

Legend:
Removed from v.434  
changed lines
  Added in v.435

  ViewVC Help
Powered by ViewVC 1.1.26