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__": |
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 |