Changeset 7221
- Timestamp:
- Jun 19, 2009, 8:28:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/fitting/validate_benchmark_fit.py
r7218 r7221 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 75 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 = 302 404.82 #mem_standard = 29424 .81 mem_standard = 30204 82 #mem_standard = 29424 83 83 84 84 elif host.find('nautilus') == 0: … … 86 86 87 87 # v 4910 is giving a mem of 15572 88 mem_standard = 15572 .88 mem_standard = 15572 89 89 90 90 91 91 elif host.find('bogong') == 0: 92 92 time_standard = 14.2 93 mem_standard = 30000 .# Updated by Ole 2008050793 mem_standard = 30000 # Updated by Ole 20080507 94 94 95 95 96 96 elif host.find('pc-31569') == 0: # DSG's PC 97 97 time_standard = 31.6 98 mem_standard = 15000 .#?98 mem_standard = 15000 #? 99 99 100 100 """ … … 112 112 113 113 # Do the assertions here 114 assert time<time_standard*1.2 114 msg = ('Time used was %.1f s, standard is %.1f s +20%% (%.1f s)' 115 % (time, time_standard, int(time_standard*1.2))) 116 assert time < time_standard*1.2 115 117 116 118 … … 127 129 #reduced again 128 130 129 msg = 'Memory used was %d KiB, mem_standard is %d KiB' %(mem, mem_standard)130 #print msg131 assert mem <mem_standard*1.2, msg131 msg = ('Memory used was %d KiB, standard is %d KiB +20%% (%d KiB)' 132 % (mem, mem_standard, int(mem_standard*1.2))) 133 assert mem < mem_standard*1.2, msg 132 134 133 135 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.