danielohuber / CopyScriptUsingMD5

Python CopyScriptUsingMD5
0 stars 0 forks source link

Performance macosx. #2

Open danielohuber opened 4 years ago

danielohuber commented 4 years ago

adding keys 1,2,3,4,5 etc to dictionary python

wat is sys.maxsize 9223372036854775807 current key is 1 current running time is : 0.043792404 & elapsed time is 6.960000000014177e-07 current key is 2 current running time is : 0.043825978 & elapsed time is 4.649999999981058e-07 current key is 4 current running time is : 0.0438629 & elapsed time is 1.2710000000040744e-06 current key is 8 current running time is : 0.043899417 & elapsed time is 4.190000000015015e-07 current key is 16 current running time is : 0.043918389 & elapsed time is 2.860000000021179e-07 current key is 32 current running time is : 0.043940972 & elapsed time is 2.820000000042233e-07 current key is 64 current running time is : 0.043976058 & elapsed time is 4.4700000000064133e-07 current key is 128 current running time is : 0.044073072 & elapsed time is 4.0899999999982617e-07 current key is 256 current running time is : 0.044214211 & elapsed time is 4.900000000057636e-07 current key is 512 current running time is : 0.044438111 & elapsed time is 3.3500000000408203e-07 current key is 1024 current running time is : 0.044845558 & elapsed time is 2.9399999999790705e-07 current key is 2048 current running time is : 0.045637902 & elapsed time is 2.820000000042233e-07 current key is 4096 current running time is : 0.047213542 & elapsed time is 3.04999999999056e-07 current key is 8192 current running time is : 0.050336146 & elapsed time is 5.599999999966743e-07 current key is 16384 current running time is : 0.057283214 & elapsed time is 1.0150000000000436e-06 current key is 32768 current running time is : 0.069819314 & elapsed time is 8.209999999980733e-07 current key is 65536 current running time is : 0.098542009 & elapsed time is 9.86999999993965e-07 current key is 131072 current running time is : 0.149995987 & elapsed time is 7.780000000068288e-07 current key is 262144 current running time is : 0.24978507 & elapsed time is 8.770000000102307e-07 current key is 524288 current running time is : 0.448896115 & elapsed time is 8.649999999610358e-07 current key is 1048576 current running time is : 0.848542798 & elapsed time is 7.659999999853895e-07 current key is 2097152 current running time is : 1.644331663 & elapsed time is 8.680000000982346e-07 current key is 4194304 current running time is : 3.240256227 & elapsed time is 7.98000000301613e-07 current key is 8388608 current running time is : 6.421989718 & elapsed time is 9.050000002730485e-07 current key is 16777216 current running time is : 12.84639901 & elapsed time is 8.930000010565209e-07 current key is 33554432 current running time is : 25.859172296 & elapsed time is 1.0400000007848575e-06 current key is 67108864 current running time is : 51.559623634 & elapsed time is 1.0969999948429177e-06 current key is 134217728 current running time is : 104.614770782 & elapsed time is 1.0079999981371657e-06 current key is 268435456 current running time is : 213.818171916 & elapsed time is 1.7250000041713065e-06 current key is 536870912 current running time is : 435.219893556 & elapsed time is 9.38999960453657e-07 current key is 1073741824 current running time is : 879.072737049 & elapsed time is 1.0899999551838846e-06 current key is 2147483648 current running time is : 1786.846510065 & elapsed time is 1.4230001852411078e-06 current key is 4294967296 current running time is : 3490.333673614 & elapsed time is 1.0079997991851997e-06

danielohuber commented 4 years ago

pi@raspberrypi:/tmp/CopyScriptUsingMD5 $ python3 Dictionary_Performance.py wat is sys.maxsize 2147483647 current key is 1 before placing key time is : 266665.830430323 after placing key time is : 266665.830434341 & elapsed time is 4.017958417534828e-06 current key is 2 before placing key time is : 266665.830554709 after placing key time is : 266665.830557709 & elapsed time is 2.9999646358191967e-06 current key is 4 before placing key time is : 266665.830611023 after placing key time is : 266665.830612819 & elapsed time is 1.7959973774850368e-06 current key is 8 before placing key time is : 266665.830665133 after placing key time is : 266665.830666781 & elapsed time is 1.6479752957820892e-06 current key is 16 before placing key time is : 266665.830726762 after placing key time is : 266665.830728521 & elapsed time is 1.7589773051440716e-06 current key is 32 before placing key time is : 266665.830806649 after placing key time is : 266665.830808279 & elapsed time is 1.6299891285598278e-06 current key is 64 before placing key time is : 266665.830923573 after placing key time is : 266665.830925202 & elapsed time is 1.6289995983242989e-06 current key is 128 before placing key time is : 266665.831104365 after placing key time is : 266665.831106162 & elapsed time is 1.7969869077205658e-06 current key is 256 before placing key time is : 266665.831427193 after placing key time is : 266665.831428767 & elapsed time is 1.5739933587610722e-06 current key is 512 before placing key time is : 266665.832068532 after placing key time is : 266665.832070217 & elapsed time is 1.6849953681230545e-06 current key is 1024 before placing key time is : 266665.833302379 after placing key time is : 266665.833304249 & elapsed time is 1.869979314506054e-06 current key is 2048 before placing key time is : 266665.835739295 after placing key time is : 266665.835741498 & elapsed time is 2.202985342592001e-06 current key is 4096 before placing key time is : 266665.840532869 after placing key time is : 266665.840535536 & elapsed time is 2.667016815394163e-06 current key is 8192 before placing key time is : 266665.85022996 after placing key time is : 266665.850236053 & elapsed time is 6.093003321439028e-06 current key is 16384 before placing key time is : 266665.869502034 after placing key time is : 266665.869505349 & elapsed time is 3.3150427043437958e-06 current key is 32768 before placing key time is : 266665.909072272 after placing key time is : 266665.90907968 & elapsed time is 7.40797258913517e-06 current key is 65536 before placing key time is : 266666.130162869 after placing key time is : 266666.130170517 & elapsed time is 7.64802098274231e-06 current key is 131072 before placing key time is : 266666.555794734 after placing key time is : 266666.555801363 & elapsed time is 6.629037670791149e-06 current key is 262144 before placing key time is : 266667.381201702 after placing key time is : 266667.381208202 & elapsed time is 6.499991286545992e-06 current key is 524288 before placing key time is : 266668.877334635 after placing key time is : 266668.87733782 & elapsed time is 3.1850067898631096e-06 current key is 1048576 before placing key time is : 266672.032887776 after placing key time is : 266672.032894572 & elapsed time is 6.796035449951887e-06 current key is 2097152 before placing key time is : 266677.888798516 after placing key time is : 266677.888802201 & elapsed time is 3.6850105971097946e-06 current key is 4194304 before placing key time is : 266685.012294267 after placing key time is : 266685.012297674 & elapsed time is 3.4070108085870743e-06 current key is 8388608 before placing key time is : 266697.33028039 after placing key time is : 266697.330283853 & elapsed time is 3.46300657838583e-06 current key is 16777216 before placing key time is : 266721.477071172 after placing key time is : 266721.477075098 & elapsed time is 3.926048520952463e-06 current key is 33554432 before placing key time is : 266768.217142569 after placing key time is : 266768.217145773 & elapsed time is 3.2039824873209e-06 current key is 67108864 before placing key time is : 266861.996243534 after placing key time is : 266861.996247071 & elapsed time is 3.536988515406847e-06

danielohuber commented 4 years ago

67108864 : machos 2015 : 51 sec raspb4 2gb : 266 sec ?