/[escript]/trunk/finley/test/python/runbenchmark.py
ViewVC logotype

Diff of /trunk/finley/test/python/runbenchmark.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 382 by gross, Mon Dec 19 06:09:49 2005 UTC revision 388 by gross, Tue Dec 20 03:13:17 2005 UTC
# Line 35  __date__="$Date:$" Line 35  __date__="$Date:$"
35  from esys.finley.finleybench import *  from esys.finley.finleybench import *
36  from esys.escript.benchmark import BenchmarkSuite,Benchmark  from esys.escript.benchmark import BenchmarkSuite,Benchmark
37    
38  thlist=[1,2,4,8,16,32,64,128]  thlist=[1,2,4,8,16,32]
39    # thlist=[1,2,4,8,16,32,64,128]
40    # thlist=[1,2,4,8,16,32,64,128]
41  show=True  show=True
42  ff=FinleyFilter()  ff=FinleyFilter()
43    
# Line 45  opt2=FinleyOptions(solver_method=LinearP Line 47  opt2=FinleyOptions(solver_method=LinearP
47  bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")  bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")
48  bm_L2Do1.addProblem(Laplace2DOrder1_30k())  bm_L2Do1.addProblem(Laplace2DOrder1_30k())
49  bm_L2Do1.addProblem(Laplace2DOrder1_60k())  bm_L2Do1.addProblem(Laplace2DOrder1_60k())
50  # bm_L2Do1.addProblem(Laplace2DOrder1_120k())  bm_L2Do1.addProblem(Laplace2DOrder1_120k())
51  # bm_L2Do1.addProblem(Laplace2DOrder1_240k())  bm_L2Do1.addProblem(Laplace2DOrder1_240k())
52  # bm_L2Do1.addProblem(Laplace2DOrder1_480k())  bm_L2Do1.addProblem(Laplace2DOrder1_480k())
53  # bm_L2Do1.addProblem(Laplace2DOrder1_960k())  bm_L2Do1.addProblem(Laplace2DOrder1_960k())
54    bm_L2Do1.addProblem(Laplace2DOrder1_1920k())
55    bm_L2Do1.addProblem(Laplace2DOrder1_3840k())
56    bm_L2Do1.addProblem(Laplace2DOrder1_7680k())
57    bm_L2Do1.addProblem(Laplace2DOrder1_15360k())
58  bm_L2Do1.addOptions(opt1)  bm_L2Do1.addOptions(opt1)
59  bm_L2Do1.addOptions(opt2)  bm_L2Do1.addOptions(opt2)
60    
61  bm_L2Do2=Benchmark("Laplace 2D (order 2)")  bm_L2Do2=Benchmark("Laplace 2D (order 2)")
62  bm_L2Do2.addProblem(Laplace2DOrder2_30k())  bm_L2Do2.addProblem(Laplace2DOrder2_30k())
63  bm_L2Do2.addProblem(Laplace2DOrder2_60k())  bm_L2Do2.addProblem(Laplace2DOrder2_60k())
64  # bm_L2Do2.addProblem(Laplace2DOrder2_120k())  bm_L2Do2.addProblem(Laplace2DOrder2_120k())
65  # bm_L2Do2.addProblem(Laplace2DOrder2_240k())  bm_L2Do2.addProblem(Laplace2DOrder2_240k())
66  # bm_L2Do2.addProblem(Laplace2DOrder2_480k())  bm_L2Do2.addProblem(Laplace2DOrder2_480k())
67  # bm_L2Do2.addProblem(Laplace2DOrder2_960k())  bm_L2Do2.addProblem(Laplace2DOrder2_960k())
68    bm_L2Do2.addProblem(Laplace2DOrder2_1920k())
69    bm_L2Do2.addProblem(Laplace2DOrder2_3840k())
70    bm_L2Do2.addProblem(Laplace2DOrder2_7680k())
71    bm_L2Do2.addProblem(Laplace2DOrder2_15360k())
72  bm_L2Do2.addOptions(opt1)  bm_L2Do2.addOptions(opt1)
73  bm_L2Do2.addOptions(opt2)  bm_L2Do2.addOptions(opt2)
74    
75    bm_L3Do1=Benchmark("Laplace 3D (order 1)")
76    bm_L3Do1.addProblem(Laplace3DOrder1_30k())
77    bm_L3Do1.addProblem(Laplace3DOrder1_60k())
78    bm_L3Do1.addProblem(Laplace3DOrder1_120k())
79    bm_L3Do1.addProblem(Laplace3DOrder1_240k())
80    bm_L3Do1.addProblem(Laplace3DOrder1_480k())
81    bm_L3Do1.addProblem(Laplace3DOrder1_960k())
82    bm_L3Do1.addProblem(Laplace3DOrder1_1920k())
83    bm_L3Do1.addProblem(Laplace3DOrder1_3840k())
84    bm_L3Do1.addProblem(Laplace3DOrder1_7680k())
85    bm_L3Do1.addProblem(Laplace3DOrder1_15360k())
86    bm_L3Do1.addOptions(opt1)
87    bm_L3Do1.addOptions(opt2)
88    
89    bm_L3Do2=Benchmark("Laplace 3D (order 2)")
90    bm_L3Do2.addProblem(Laplace3DOrder2_30k())
91    bm_L3Do2.addProblem(Laplace3DOrder2_60k())
92    bm_L3Do2.addProblem(Laplace3DOrder2_120k())
93    bm_L3Do2.addProblem(Laplace3DOrder2_240k())
94    bm_L3Do2.addProblem(Laplace3DOrder2_480k())
95    bm_L3Do2.addProblem(Laplace3DOrder2_960k())
96    bm_L3Do2.addProblem(Laplace3DOrder2_1920k())
97    bm_L3Do2.addProblem(Laplace3DOrder2_3840k())
98    bm_L3Do2.addProblem(Laplace3DOrder2_7680k())
99    bm_L3Do2.addProblem(Laplace3DOrder2_15360k())
100    bm_L3Do2.addOptions(opt1)
101    bm_L3Do2.addOptions(opt2)
102    
103    
104    
105  bms=BenchmarkSuite("Paso/Finley")  bms=BenchmarkSuite("Paso/Finley")
106  bms.addBenchmark(bm_L2Do1)  bms.addBenchmark(bm_L2Do1)
107  bms.addBenchmark(bm_L2Do2)  bms.addBenchmark(bm_L2Do2)
108    bms.addBenchmark(bm_L3Do1)
109    bms.addBenchmark(bm_L3Do2)
110  bms.run(scale=thlist)  bms.run(scale=thlist)
111  print bms.getHTML(filter=ff)  print bms.getHTML(filter=ff)

Legend:
Removed from v.382  
changed lines
  Added in v.388

  ViewVC Help
Powered by ViewVC 1.1.26