| | 25 | |
| | 26 | == Results == |
| | 27 | |
| | 28 | The test program selects all spheres and cylinders and sets all of them to the same color. The test results are crude, //i.e.//, only one pass was made, because we are only interested in a rough estimate of the relative value of various approaches. |
| | 29 | |
| | 30 | || ||= **3fx2** =||= **3k9f** =||= **3cc4** =|| |
| | 31 | || spheres|| 1386 || 11559 || 99135 || |
| | 32 | || cylinders|| 1748 || 16612 || 166517 || |
| | 33 | ||Python Objects|| 1X \\ 0.0100328922272 \\ 1.6 MiB || 1X \\ 0.0954599380493 \\ 17.2 MiB || 1X \\ 0.915394067764 \\ 169 MiB || |
| | 34 | ||Python Objects with slots|| 1.09X \\ 0.00920701026917 \\ 0.82 MiB || 1.2X \\ 0.079794883728 \\ 9.9 MiB || 1.1X \\ 0.822746992111 \\ 98 MiB || |
| | 35 | ||NumPy arrays for radius and \\ coordinates (not color)|| 0.56X \\ 0.0180189609528 \\ 1.1 MiB || 0.62X \\ 0.151782989502 \\ 11.3 MiB || 0.65X \\ 1.40139698982 \\ 108 MiB || |
| | 36 | ||Numpy arrays for all attributes, \\ slotted proxy objects|| 5.6X \\ 0.00180101394653 \\ 0.35 MiB || 30.8X \\ 0.0030951499939 \\ 4.5 MiB || 65.3X \\ 0.0140240192413 \\ 43.3 MiB || |
| | 37 | || |||||| Relative Speed / 20X Time / Memory || |