[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/bench mark.py vob/paper/__init__.py vob/...
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] libvob/bench mark.py vob/paper/__init__.py vob/... |
Date: |
Tue, 01 Apr 2003 14:37:25 -0500 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Tuomas J. Lukka <address@hidden> 03/04/01 14:37:25
Modified files:
bench : mark.py
Added files:
bench/vob/paper: __init__.py dice.py
Log message:
Benching to see if dicing is reasonably fast - yes, it's ok for now if
not dicing too much.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/bench/mark.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/bench/vob/paper/__init__.py?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/bench/vob/paper/dice.py?rev=1.1
Patches:
Index: libvob/bench/mark.py
diff -u libvob/bench/mark.py:1.2 libvob/bench/mark.py:1.3
--- libvob/bench/mark.py:1.2 Fri Mar 21 04:42:50 2003
+++ libvob/bench/mark.py Tue Apr 1 14:37:25 2003
@@ -47,13 +47,19 @@
win = vob.GraphicsAPI.getInstance().createWindow()
win.setLocation(0, 0, 1024, 768)
- iters = 400
for ar in _argLists(args):
vs = win.createVobScene()
sceneFunc(vs, **ar)
print ar
- print win.timeRender(vs, 1, iters) / iters * 1000, "ms"
+ total = 0
+ iters = 1
+ while total < 1.7:
+ total = win.timeRender(vs, 1, iters)
+ ms = total / iters * 1000
+ # print "Now: ",iters,total,ms
+ iters *= 2
+ print ms, "ms with ",iters," in ",total,"\n"
if __name__ == "__main__":
sys.path.insert(0, ".")
@@ -65,7 +71,8 @@
print "Opt: ",o,a
vob.util.dbg.option(o,a)
- testmod = "bench.vob.text.overhead"
+ # testmod = "bench.vob.text.overhead"
+ testmod = "bench.vob.paper.dice"
exec "import "+testmod+"\ntestmod = "+testmod+"\n"
print "TESTMOD: ",testmod
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] libvob/bench mark.py vob/paper/__init__.py vob/...,
Tuomas J. Lukka <=