@@ -16,6 +16,7 @@ import SmallRecordBench
16import TupleBench
16import TupleBench
17import SmallTupleBench
17import SmallTupleBench
18import CtorBench
18import CtorBench
20{-| Compile this with --output=Benchmarks.html to generate
21{-| Compile this with --output=Benchmarks.html to generate
21 a webpage, which runs the benchmarks and shows the results.
22 a webpage, which runs the benchmarks and shows the results.
@@ -29,6 +30,7 @@ mySuite =
29 , Benchmark.bench1 "Access 9-field tuple 200 times: " TupleBench.sumRandomElems indices200
30 , Benchmark.bench1 "Access 9-field tuple 200 times: " TupleBench.sumRandomElems indices200
30 , Benchmark.bench1 "Access 3-field tuple 200 times: " SmallTupleBench.sumRandomElems indices200
31 , Benchmark.bench1 "Access 3-field tuple 200 times: " SmallTupleBench.sumRandomElems indices200
31 , Benchmark.bench1 "Access 20-constructor Type 200 times: " CtorBench.sumFieldsList ctorData200
32 , Benchmark.bench1 "Access 20-constructor Type 200 times: " CtorBench.sumFieldsList ctorData200
33+ , Benchmark.bench1 "Access 10-constructor Type 200 times: " SmallCtorBench.sumFieldsList smallCtorData200
33 , Benchmark.bench1 "Make and sum dict, 10000 elems: " LargeDictionary.addNToDictAndSum 10000
35 , Benchmark.bench1 "Make and sum dict, 10000 elems: " LargeDictionary.addNToDictAndSum 10000
34 , Benchmark.bench1 "Make and sum dict, 50 elems: " LargeDictionary.addNToDictAndSum 50
36 , Benchmark.bench1 "Make and sum dict, 50 elems: " LargeDictionary.addNToDictAndSum 50
@@ -126,4 +128,8 @@ timeSteps30s =
126 List.map (\x -> (1.0 / 30.0) * (toFloat x * Time.second) ) [1 .. 900]
128 List.map (\x -> (1.0 / 30.0) * (toFloat x * Time.second) ) [1 .. 900]
128ctorData200 =
130ctorData200 =
129− List.map CtorBench.makeRandomData indices200
131+ List.map CtorBench.makeRandomData indices200
135+ List.map SmallCtorBench.makeRandomData indices200