############################################ # To test: load 'memory.py' load 'witt2_fun.sage' m0=memory() p=151 v=WittSum2Pol(p) print "Total memory usage: " + str(memory(m0)/(1024)^2) + "MB" """" p=23 gives: Total memory usage: 4.0MB Exiting SAGE (CPU time 0m0.57s, Wall time 0m2.93s). p=31 gives: Total memory usage: 10.5MB Exiting SAGE (CPU time 0m1.17s, Wall time 0m12.50s). p=41 gives: Total memory usage: 25.0MB Exiting SAGE (CPU time 0m2.99s, Wall time 0m5.23s). p=53 gives: Total memory usage: 63.0MB Exiting SAGE (CPU time 0m8.54s, Wall time 0m19.70s). p=61 gives: Total memory usage: 108.5MB Exiting SAGE (CPU time 0m15.79s, Wall time 0m28.51s). p=71 gives: Total memory usage: 197.5MB Exiting SAGE (CPU time 0m31.53s, Wall time 1m26.80s). p=101 gives: Total memory usage: 808.22265625MB Exiting SAGE (CPU time 2m50.04s, Wall time 7m24.60s). p=151 gives: Total memory usage: 4032.81640625MB Exiting SAGE (CPU time 21m6.82s, Wall time 24m48.12s). """ ############################################ # To test: load 'memory.py' load 'witt2_fun.sage' m0=memory() p=41 v=WittSum2Pol2(p) print "Total memory usage: " + str(memory(m0)/(1024)^2) + "MB" """" p=23 gives: Total memory usage: 53.15625MB Exiting SAGE (CPU time 3m31.64s, Wall time 7m28.03s). p=31 gives: Total memory usage: 115.3984375MB Exiting SAGE (CPU time 57m30.87s, Wall time 134m3.65s). """ ############################################ # To test: load 'memory.py' load 'witt2_fun.sage' m0=memory() p=23 v=WittSum2Pol3(p) print "Total memory usage: " + str(memory(m0)/(1024)^2) + "MB" """" p=23 gives: Total memory usage: 67.69140625MB Exiting SAGE (CPU time 8m31.59s, Wall time 9m30.26s). """