Skip to content

Commit

Permalink
Benchmark: Add another simple 3d test object
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Dec 11, 2012
1 parent bbe8a44 commit 161006d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Benchmark.hs
Expand Up @@ -27,6 +27,13 @@ object2 = squarePipe (10,10,10) 1 100
(map (\n->(n/precision)*y) [0..precision])
(map (\n->(n/precision)*z) [0..precision])

object3 :: SymbolicObj3
object3 =
difference
[ rect3R 1 (-1,-1,-1) (1,1,1)
, rect3R 1 (0,0,0) (2,2,2)
]

obj2Benchmarks :: String -> SymbolicObj2 -> Benchmark
obj2Benchmarks name obj =
bgroup name
Expand All @@ -44,6 +51,7 @@ obj3Benchmarks name obj =
benchmarks =
[ obj3Benchmarks "Object 1" object1
, obj3Benchmarks "Object 2" object2
, obj3Benchmarks "Object 3" object3
]

main = defaultMain benchmarks
Expand Down

0 comments on commit 161006d

Please sign in to comment.