rem
rem

Reputation: 893

overhead of cabal run

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"
    (m, _) <- measure (whnfIO runProj) runs

with criterion. I know cabal run will check if the project has been built every time it's called, but other than that does it produce significant overhead? Is there a better way to benchmark other projects within a haskell program?

Upvotes: 2

Views: 85

Answers (0)

Related Questions