-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
-- You can benchmark your code quickly and effectively with Criterion. See its | ||
-- website for help: <http://www.serpentine.com/criterion/>. | ||
-- You can benchmark your code quickly and effectively with Criterion. | ||
-- See its website for help: <http://www.serpentine.com/criterion/>. | ||
import Criterion.Main | ||
|
||
import WaveToy1 | ||
|
||
default (Int) | ||
|
||
main :: IO () | ||
main = defaultMain [bench "const" (whnf const ())] | ||
main = defaultMain [ | ||
-- bgroup "Grid" [bench "init" $ nf (initGrid (0.0::Double) (0.0, 1.0)) 1001] | ||
bgroup "Grid" [bench "init" $ | ||
whnf (\np -> let g = initGrid (0.0::Double) (0.0, 1.0) np | ||
in energyGrid g) 1001] | ||
] |