@@ -18,6 +18,7 @@ import SmallTupleBench
1818import CtorBench
1919import SmallCtorBench
2020import PatternMatchBench
21+import IfBench
2122
2223{-| Compile this with --output=Benchmarks.html to generate
2324 a webpage, which runs the benchmarks and shows the results.
@@ -35,6 +36,9 @@ mySuite =
3536 , Benchmark.bench1 "Access 20-constructor Type 200 times: " CtorBench.sumFieldsList ctorData200
3637 , Benchmark.bench1 "Access 10-constructor Type 200 times: " SmallCtorBench.sumFieldsList smallCtorData200
3738
39+ , Benchmark.bench1 "Tail-recursive if function, called 200 times: " IfBench.tailRecSum indices200
40+ , Benchmark.bench1 "Tail-recursive if function, called 200 times: " IfBench.manyConditionalSum indices200
41+
3842 , Benchmark.bench1 "Pattern match 18-levels deep, use all values, 200 times " PatternMatchBench.deepMatchSum nestedData200
3943 , Benchmark.bench1 "Pattern match 18-levels deep, 16 wildcards, 200 times " PatternMatchBench.wildcardMatchSum nestedData200
4044 , Benchmark.bench1 "Pattern match 4-levels deep, use all values, 200 times " PatternMatchBench.shallowMatchSum nestedData200