Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
157 views

I'm using criterion to benchmark a function. The end goal is to create a box plot, for different inputs to this function, however, to my understanding of criterion, the output is not enough for this. ...
Pompan's user avatar
  • 123
1 vote
0 answers
91 views

I got a download file from my University for one of my assignments, it has an import Criterion.Main that my version of stack does not recognize I tried updating my Stack and cabal, added #!/usr/bin/...
Am Akkaya's user avatar
0 votes
2 answers
379 views

I cannot get Criterion to work. I followed the tutorial here, installing Criterion by doing the following. cabal update cabal install -j --disable-tests criterion when I try ghc -O Fibber.hs or ghc -...
Liam White's user avatar
2 votes
1 answer
502 views

I am very new to Haskell. I am trying to use Criterion to get performance data. My Main module is as follows: module Main where import SingleThreadedBlockChain import Data.Time.Clock.System (...
S. Dale's user avatar
  • 42
1 vote
1 answer
47 views

I am working with AutoBench since a few days testing performances of Euler's sieve on different input sizes. My tests simply asks for the nth prime inside the list generated by Euler's sieve. While ...
Gianmarco's user avatar
1 vote
1 answer
180 views

I'm trying to use the criterion library to do some benchmarking. I've tried a simple example: module Main where import Criterion.Types import Criterion.Main myConfig :: Config myConfig = ...
Chris Stryczynski's user avatar
3 votes
2 answers
717 views

This code compiles and runs without problems: module Main where import Criterion.Main main :: IO () main = defaultMain [env (return $ [1,2]) (\is -> bgroup "group" (...
haskellHQ's user avatar
  • 1,047
0 votes
1 answer
148 views

I am new to Haskell and really having trouble with the whole IO thing. I am trying to find out how long it takes to traverse a list in haskell. I wanted to generate a list of random numbers and pass ...
AR17's user avatar
  • 39
3 votes
2 answers
1k views

I'm running on a container with 768MB ram and 512 MB swap space. I can't increase either of this. cabal install criterion always gives Failed during the building phase. The exception was: ExitFailure ...
jorgen's user avatar
  • 3,603
4 votes
1 answer
240 views

I want to know how long it takes my program to read a 12.9MB .wav file into memory. The function that reads a file into memory looks as follows: import qualified Data.ByteString as BS ...
Thomas Vanhelden's user avatar
5 votes
2 answers
1k views

I set up a simple stack project, and a .cabal entry for the benchmark tests: benchmark leaves-of-a-tree-bench type: exitcode-stdio-1.0 hs-source-dirs: src, bench main-is: ...
Damian Nadales's user avatar
0 votes
0 answers
110 views

I want to track the difference of time for termination of the following to versions calculating the length of a list. I have got one recursive and one tail recursive. Somehow i have got a problem when ...
Mauritius's user avatar
  • 283
4 votes
1 answer
302 views

I need to profile a large number of haskell executables, hopefully in parallel. I was able to get the clock time with measure and measTime from the Criterion library, but couldn't get measCpuTime or ...
rem's user avatar
  • 893
2 votes
0 answers
89 views

I need to benhmark another project in my program, and right now I'm doing system $ "cd " ++ projDir ++ "; cabal build" let runProj = system $ "cd " ++ projDir ++ "; cabal run > /dev/null" ...
rem's user avatar
  • 893
1 vote
0 answers
36 views

I just started using the excellent criterion package and I was wondering if it's possible to alter the graph. For example I would need to normalize result within a group so that the longest result of ...
mb14's user avatar
  • 22.7k
7 votes
2 answers
352 views

I have a Criterion benchmark where each bgroup corresponds to a test, and within each bgroup there are two bench values of the test with different options. For example: main = defaultMain [bgroup ...
Neil Mitchell's user avatar
4 votes
2 answers
609 views

I need to benchmark some code inside IO, and criterion supports that pretty well. But I want to perform few initialization steps (different for each benchmark). The naive approach: main = defaultMain ...
Yuras's user avatar
  • 13.9k
13 votes
1 answer
721 views

I have a non-recursive function to calculate longest common subsequence that seems to perform well (ghc 7.6.1, compiled with -O2 -fllvm flags) if I measure it with Criterion in the same module. On the ...
Sal's user avatar
  • 4,326
8 votes
1 answer
370 views

Is there a Scala (or Java, I guess) equivalent of criterion? I'm not just talking about a benchmarking library: check out what criterion does for HTML results.
Ptharien's Flame's user avatar
10 votes
2 answers
2k views

I am using criterion to benchmark my Haskell code. I'm doing some heavy computations for which I need random data. I've written my main benchmark file like this: main :: IO () main = newStdGen >&...
Jan Stolarek's user avatar
  • 1,429
12 votes
3 answers
1k views

There is a nice example of HTML output from criterion at http://bos.github.com/criterion/. Which command line option is used to generate this output? An answer to a related question asserts that ...
danr's user avatar
  • 2,425
8 votes
2 answers
454 views

I have used the libraries criterion and cmdargs. When I compile the program completely without cmdargs and run it e.g. ./prog --help then I get some unwanted response from criterion about the ...
J Fritsch's user avatar
  • 3,368
5 votes
1 answer
369 views

I am trying to optimize a library which is designed to take a large data set and then apply different operations to it. Now that the library is working, I want to optimize it. I am under the ...
Toymakerii's user avatar
  • 1,540
15 votes
1 answer
3k views

I'm trying to measure the performance of a simple Haar DWT program using the Criterion framework. (It is erroneously slow, but I'll leave that for another question). I can't find any good ...
gatoatigrado's user avatar
  • 16.9k