/[libvob]/libvob/bench/mark.py
ViewVC logotype

Diff of /libvob/bench/mark.py

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

revision 1.3 by tjl, Tue Apr 1 19:37:25 2003 UTC revision 1.4 by tjl, Fri Apr 4 12:34:59 2003 UTC
# Line 55  def run(sceneFunc, args): Line 55  def run(sceneFunc, args):
55          total = 0          total = 0
56          iters = 1          iters = 1
57          while total < 1.7:          while total < 1.7:
58                iters *= 2
59              total = win.timeRender(vs, 1, iters)              total = win.timeRender(vs, 1, iters)
60              ms = total / iters * 1000              ms = total / iters * 1000
61              # print "Now: ",iters,total,ms              # print "Now: ",iters,total,ms
             iters *= 2  
62          print ms, "ms   with ",iters," in ",total,"\n"          print ms, "ms   with ",iters," in ",total,"\n"
63    
64  if __name__ == "__main__":  if __name__ == "__main__":
# Line 72  if __name__ == "__main__": Line 72  if __name__ == "__main__":
72          vob.util.dbg.option(o,a)          vob.util.dbg.option(o,a)
73    
74      # testmod = "bench.vob.text.overhead"      # testmod = "bench.vob.text.overhead"
75      testmod = "bench.vob.paper.dice"      # testmod = "bench.vob.paper.dice"
76        # testmod = "bench.vob.trans.trivial"
77        testmod = "bench.vob."+args[0]
78      exec "import "+testmod+"\ntestmod = "+testmod+"\n"      exec "import "+testmod+"\ntestmod = "+testmod+"\n"
79    
80      print "TESTMOD: ",testmod      print "TESTMOD: ",testmod

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26