[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] Coordsystem benchmarks
From: |
Matti Katila |
Subject: |
[Gzz] Coordsystem benchmarks |
Date: |
Wed, 19 Mar 2003 07:29:05 +0200 (EET) |
Hi,
Todays benchmarks about measuring cs creations without showing any vobs
was not very good test with timeRender().
Something like here:
for count in range(0, self.count):
cs = vs.coords.affineCoordsys(0,0,0,0 ,1,0,0,1)
for nested in range(0,self.nested):
cs = vs.coords.affineCoordsys(cs,0,0,0, 1,0,0,1)
....
and make the measuring with System.currentTimeMillis():
time = System.currentTimeMillis()
for i in range(0,1000):
vs = w.createVobScene()
self.scene(vs)
print 'time: ', (System.currentTimeMillis() - time)
Is better than timeRender which doesn't show difference at all or what do
you, Tuomas, think?
With coords_benchmark demo I saw that creating coordsystems takes linear
time and affineCoordsys is twice as expensive as translateCS.
-Matti
- [Gzz] Coordsystem benchmarks,
Matti Katila <=