File: UIB.hs

package info (click to toggle)
haskell-tidal 1.7.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 776 kB
  • sloc: haskell: 9,594; lisp: 413; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{-# LANGUAGE OverloadedStrings #-}

module Tidal.UIB where 

import Criterion.Main
import Tidal.Inputs
import Sound.Tidal.Core
import Sound.Tidal.UI 

fixB :: [Benchmark]
fixB = 
  [ bgroup "fix" [
      bench "fix whnf" $ whnf (fix (fast 2) fixArg1) fixArg2
    , bench "fix nf" $ nf (fix (fast 2) fixArg1) fixArg2 ]
  ]

euclidB :: [Benchmark] 
euclidB = 
  [ bgroup "euclid" [
      bench "euclid" $ whnf (euclid (head ecA1) (head $ drop 1 ecA1)) ecA2 
    , bench "euclidFull" $ whnf (euclidFull (head ecA1) (head $ drop 1 ecA1) ecA2) ecA2
   , bench "euclidBool" $ whnf (_euclidBool 1) 100000]
  ]