Changeset 7248
- Timestamp:
- Jun 23, 2009, 9:34:51 AM (15 years ago)
- Location:
- branches/numpy_anuga_validation/automated_validation_tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy_anuga_validation/automated_validation_tests/fitting/validate_benchmark_fit.py
r7242 r7248 51 51 def test_fit_time_and_mem(self): 52 52 import socket 53 54 # get hostname - for *nix and Windows 53 55 host = socket.gethostname() 56 57 # define dictionary of expected time/memory usage per machine. 58 # key must be unique *prefix* of machine name, lowercase. 59 # value is tuple: (time, memory) in seconds and KiB. 60 expected_results = {'tornado': (10.8, 40468), # tornado headnode 61 'cyclone': (7.4, 40468), # cyclone headnode 62 'compute': (10.8, 40468), # cluster computenode 63 'nautilus': (8.1, 16104), # Ole's 32bit Ubuntu 64 'bogong': (14.2, 30000), # ANU? 65 'pc-31569': (31.6, 15000), # DSG's PC? 66 'pc-32572': (12.8, 15788), # Ross' 32bit work Ubuntu 67 'saturn': (12.8, 39404) # Ross' 64bit home Ubuntu 68 } 69 70 # run trial, report on time and memory 54 71 ben = BenchmarkLeastSquares() 55 72 (time, mem, num_tri, one_t, … … 62 79 ) 63 80 64 # define dictionary of expected time/memory usage per machine65 # key must be unique *prefix* of machine name, lowercase66 # value is tuple: (time, memory) in seconds and KiB67 expected_results = {'tornado': (10.8, 40468), # tornado headnode68 'cyclone': (7.4, 40468), # cyclone headnode69 'compute': (10.8, 40468), # cluster computenode70 'nautilus': (8.1 , 16104), # Ole's 32bit Ubuntu71 'bogong': (14.2, 30000), # ANU?72 'pc-31569': (31.6, 15000), # DSG's PC73 'pc-32572': (12.8, 15788), # Ross' 32bit work Ubuntu74 'saturn': (12.8, 39404) # Ross' 64bit home Ubuntu75 }76 77 81 # Get expected machine values, else a default set of values 78 82 time_standard = 15.0 # max of above, plus a little … … 81 85 if host.lower().startswith(key): 82 86 (time_standard, mem_standard) = expected_results[key] 87 break 83 88 84 89 # don't want exception here, report on time *and* memory -
branches/numpy_anuga_validation/automated_validation_tests/validate_all.py
r6821 r7248 39 39 os.chdir(path) 40 40 s = 'python %s' %(filename) 41 print42 41 print s 43 42 os.system(s)
Note: See TracChangeset
for help on using the changeset viewer.