machine: 400Mhz AMD-
K6(tm)
3D
processor

		note
that Static_Move
is 'mock' test,
hopefully achievable

creation movement
C++/Message_Move       : 2.9K/s     1.9K/
s
		C
++/Message_Move/union : 3.2K/s     2.3K/

s(union optimization by Karsten)

C++/Objects_Move       : 860/s      500/
s
		C
++/Objects2_Move      : 52K/s      32K/
s
		C
++/Objects3_Move      : 300K/s     300K/
s
		C
++/Objects3_Move/s    : 500K/s     380K/s (#
define USE_STRING
0)
C++/Static_Move        : 7.6M/s     1.7M/
s
		C
++/SmartPtr_Move      : 1.8M/s     810K/
s
		C
++/Call_Move          :            1.9M/
s
		Python
/OldMove         : 1.5K/s     900/
s
		Python
/Move            : 1.3K/s     840/
s
		Python
/Call_Move       :            26K/
s


		forge
-2000.08.11-17:29:05/scratchpad/Object_modified.h
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

C++:
Message_Move:
Plain creating
of sight
operation:
iterations = 1e+06
CPU Time = 333.22
iter/
s = 3001.02
NPC movements
:
iterations = 100000
CPU Time = 50.59
iter/
s = 1976.68
383.43user 0.39system 7:25.12elapsed 86%
CPU

		Objects_Move
:
Plain creating
of sight
operation:
iterations = 10000
CPU Time = 11.57
iter/
s = 864.304
NPC movements
:
iterations = 10000
CPU Time = 20.19
iter/
s = 495.295
31.75user 0.02system 0:35.88elapsed 88%
CPU

		Call_Move
:
NPC movements
:
iterations = 1e+07
CPU Time = 4.94
iter/
s = 2.02429e+06
4.94user 0.01system 0:05.63elapsed 87%
CPU
(no
result velocity
:
(
NPC movements
:
(
iterations = 1e+07
CPU Time = 4.27
iter/
s = 2.34192e+06
		(4.27user
0.02system 0:04.82elapsed 88%
CPU

		Static_Move
:
Plain creating
of sight
operation:
iterations = 1e+07
CPU Time = 1.26
iter/
s = 7.93651e+06
NPC movements
:
iterations = 1e+07
CPU Time = 5.61
iter/
s = 1.78253e+06
6.88user 0.00system 0:07.69elapsed 89%
CPU

		SmartPtr_Move
:
//original working version:
Plain creating
of sight
operation:
iterations = 1e+07
CPU Time = 10.06
iter/
s = 994036
NPC movements
:
iterations = 1e+07
CPU Time = 19.45
iter/
s = 514139
29.50user 0.02system 0:31.84elapsed 92%
CPU

//remove res->IncRef() from alloc:
Plain
creating of
sight operation
:
iterations = 1e+07
CPU Time = 9.85
iter/
s = 1.01523e+06
NPC movements
:
iterations = 1e+07
CPU Time = 19.5
iter/
s = 512821
29.36user 0.00system 0:31.44elapsed 93%
CPU

//lazy freeing:
Plain
creating of
sight operation
:
iterations = 1e+07
CPU Time = 7.34
iter/
s = 1.3624e+06
NPC movements
:
iterations = 1e+07
CPU Time = 15
iter/
s = 666667
22.34user 0.01system 0:23.74elapsed 94%
CPU

//inlining 'generic' global DecRef
Plain
creating of
sight operation
:
iterations = 1e+07
CPU Time = 7.47
iter/
s = 1.33869e+06
NPC movements
:
iterations = 1e+07
CPU Time = 14.06
iter/
s = 711238
21.54user 0.01system 0:22.99elapsed 93%
CPU

//without assert:
Plain
creating of
sight operation
:
iterations = 1e+07
CPU Time = 7.24
iter/
s = 1.38122e+06
NPC movements
:
iterations = 1e+07
CPU Time = 13.5
iter/
s = 740741
20.74user 0.00system 0:22.13elapsed 93%
CPU

//with: FINE_GRAINED_LISTS
Plain
creating of
sight operation
:
iterations = 1e+07
CPU Time = 5.17
iter/
s = 1.93424e+06
NPC movements
:
iterations = 1e+07
CPU Time = 12
iter/
s = 833333
17.18user 0.01system 0:18.47elapsed 93%CPU

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


Python:
OldMove.py:
uses old
libAtlasPy:
Plain creating
of sight
operation:
iterations = 10000
CPU Time = 6.55402898788
iter/
s = 1525.77903126
NPC movements
:
iterations = 10000
CPU Time = 11.1361660957
iter/
s = 897.975112263
15.80user 0.02system 0:17.93elapsed 88%
CPU

		Move
.py:
Plain creating
of sight
operation:
iterations = 10000
CPU Time = 7.57880795002
iter/
s = 1319.46871671
NPC movements
:
iterations = 10000
CPU Time = 11.8502351046
iter/
s = 843.865114216
17.38user 0.01system 0:19.66elapsed 88%
CPU

		Call_Move
.py:
NPC movements
:
iterations = 100000
CPU Time = 3.7076369524
iter/
s = 26971.3570352
3.38user 0.03system 0:03.84elapsed 88%CPU


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2000-10-30:
Optimized Atlas
-C++/src/Objects:
Objects2_Move.
cpp
		Plain
creating of
sight operation
:
iterations = 100000
CPU Time = 1.87
iter/
s = 53475.9
NPC movements
:
iterations = 100000
CPU Time = 3.02
iter/
s = 33112.6
4.92user 0.02system 0:05.05elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2000-11-27:
Optimized Atlas
-C++/src/Objects:
Objects3_Move.
cpp
		Plain
creating of
sight operation
:
iterations = 1e+06
CPU Time = 3.27
iter/
s = 305810
NPC movements
:
iterations = 1e+06
CPU Time = 3.21
iter/
s = 311526
6.99user 0.04system 0:07.24elapsed 96%CPU (0avgtext+0avgdata 0maxresident)
k

#define USE_STRING 0
		Plain
creating of
sight operation
:
iterations = 1e+06
CPU Time = 1.96
iter/
s = 510204
NPC movements
:
iterations = 1e+06
CPU Time = 2.55
iter/
s = 392157
5.03user 0.06system 0:05.28elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2000-12-08:
Message_Move with
Karsten Object
optimizations:
Plain creating
of sight
operation:
iterations = 100000
CPU Time = 30.25
iter/
s = 3305.79
NPC movements
:
iterations = 100000
CPU Time = 42.12
iter/
s = 2374.17
72.41user 0.05system 1:22.48elapsed 87%CPU (0avgtext+0avgdata 0maxresident)k
