Mon May 13 08:04:09 2013 TIMER_TEST PYTHON version: Test the TIMER library. TIMER_TEST01 Use CLOCK() to time the RANDOM_SAMPLE function: x = numpy.random.random_sample ( ( n, 1 ) ); Data vectors will be of minimum size 1024 Data vectors will be of maximum size 4194304 Number of repetitions of the operation: 5 Timing results in seconds: Size Rep #1 Rep #2 Rep #3 Rep #4 Rep #5 1024 0.000000 0.000000 0.000000 0.000000 0.000000 2048 0.000000 0.000000 0.000000 0.000000 0.000000 4096 0.000000 0.000000 0.000000 0.000000 0.000000 8192 0.000000 0.010000 0.000000 0.000000 0.000000 16384 0.000000 0.000000 0.000000 0.000000 0.000000 32768 0.000000 0.000000 0.000000 0.000000 0.000000 65536 0.000000 0.000000 0.000000 0.000000 0.010000 131072 0.000000 0.000000 0.000000 0.010000 0.000000 262144 0.010000 0.000000 0.020000 0.000000 0.010000 524288 0.010000 0.010000 0.010000 0.020000 0.010000 1048576 0.030000 0.030000 0.040000 0.020000 0.020000 2097152 0.060000 0.060000 0.050000 0.060000 0.040000 4194304 0.110000 0.120000 0.120000 0.100000 0.120000 TIMER_TEST02 Use TIME() to time the RANDOM_SAMPLE function: x = numpy.random.random_sample ( ( n, 1 ) ); Data vectors will be of minimum size 1024 Data vectors will be of maximum size 4194304 Number of repetitions of the operation: 5 Timing results in seconds: Size Rep #1 Rep #2 Rep #3 Rep #4 Rep #5 1024 0.000036 0.000024 0.000025 0.000022 0.000023 2048 0.000052 0.000042 0.000044 0.000044 0.000042 4096 0.000083 0.000083 0.000085 0.000082 0.000083 8192 0.000162 0.000199 0.000164 0.000163 0.000162 16384 0.000342 0.000397 0.000324 0.000322 0.000327 32768 0.000676 0.000783 0.000647 0.000659 0.000643 65536 0.001357 0.001581 0.001287 0.001286 0.001286 131072 0.002734 0.003226 0.002597 0.002568 0.002585 262144 0.005484 0.006645 0.005152 0.005163 0.005148 524288 0.011135 0.016631 0.010339 0.010322 0.010327 1048576 0.025598 0.031421 0.020623 0.020769 0.020632 2097152 0.047040 0.063240 0.041249 0.041221 0.041229 4194304 0.116339 0.107219 0.111758 0.107629 0.111923 TIMER_TEST: Normal end of execution. Mon May 13 08:04:11 2013