Changeset 7222
- Timestamp:
- Jun 19, 2009, 8:31:29 AM (15 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/benchmark_least_squares.py
r6152 r7222 110 110 111 111 112 113 114 112 class BenchmarkLeastSquares: 115 116 113 """ 117 114 -
branches/numpy_anuga_validation/automated_validation_tests/fitting/validate_benchmark_fit.py
r6198 r7222 65 65 #Defaults 66 66 time_standard = 120. 67 mem_standard = 50000 .67 mem_standard = 50000 68 68 69 69 if host.find('tornado') == 0: … … 71 71 #time_standard = 14.5 72 72 time_standard = 24. 73 mem_standard = 302 404.73 mem_standard = 30204 74 74 75 elif host.find('compute -1') == 0: # cyclone or tornado node75 elif host.find('compute') == 0: # cyclone or tornado node 76 76 time_standard = 19.0 77 mem_standard = 30204 .77 mem_standard = 30204 78 78 79 79 elif host.find('cyclone') == 0: # cyclone headnode 80 80 time_standard = 13.3 81 mem_standard = 29424. 81 mem_standard = 30204 82 #mem_standard = 29424 82 83 83 84 elif host.find('nautilus') == 0: … … 85 86 86 87 # v 4910 is giving a mem of 15572 87 mem_standard = 15572 .88 mem_standard = 15572 88 89 89 90 90 91 elif host.find('bogong') == 0: 91 92 time_standard = 14.2 92 mem_standard = 30000 .# Updated by Ole 2008050793 mem_standard = 30000 # Updated by Ole 20080507 93 94 94 95 95 96 elif host.find('pc-31569') == 0: # DSG's PC 96 97 time_standard = 31.6 97 mem_standard = 15000. #? 98 mem_standard = 15000 #? 99 100 elif host.find('PC-32572') == 0: # Ross' Ubuntu box - nump trunk 101 time_standard = 12.8 102 mem_standard = 15788 #? 98 103 99 104 """ … … 111 116 112 117 # Do the assertions here 113 assert time<time_standard*1.2 118 msg = ('Time used was %.1f s, standard is %.1f s +20%% (%.1f s)' 119 % (time, time_standard, int(time_standard*1.2))) 120 assert time < time_standard*1.2, msg 114 121 115 122 … … 126 133 #reduced again 127 134 128 msg = 'Memory used was %f, mem_standard is %f' %(float(mem), mem_standard)129 #print msg130 assert mem <mem_standard*1.2, msg135 msg = ('Memory used was %d KiB, standard is %d KiB +20%% (%d KiB)' 136 % (mem, mem_standard, int(mem_standard*1.2))) 137 assert mem < mem_standard*1.2, msg 131 138 132 139 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.