Giter VIP home page Giter VIP logo

Comments (6)

Bodigrim avatar Bodigrim commented on May 29, 2024

Entry of what?

from tasty-bench.

ribosomerocker avatar ribosomerocker commented on May 29, 2024

Benchmark entry, this is the output I'm getting from something rather standard: https://termpad.com/ImpossibleRepulsiveMagician

the code:

main :: IO ()
main = defaultMain
  [ bgroup "fibTab" $ fmap (createBenchmark fibTab) [1..80]
  , bgroup "fibMemo" $ fmap (createBenchmark fibMemo) [1..80]
  , bgroup  "fibWithFibs" $ fmap (createBenchmark fib) [1..80]
  ]
  where
    createBenchmark func n = bench (show n) $ nf func n

from tasty-bench.

Bodigrim avatar Bodigrim commented on May 29, 2024

How about sed 's/All.//g'?

from tasty-bench.

ribosomerocker avatar ribosomerocker commented on May 29, 2024

Yep, that's what I'm doing right now, but it looks like it's sort of redundant in the benches and it would make it a tiny bit easier to parse for me.

from tasty-bench.

Bodigrim avatar Bodigrim commented on May 29, 2024

defaultMain' :: [Benchmark] -> IO ()
defaultMain' bs = do
installSignalHandlers
let b = testGroup "All" bs
opts <- parseOptions benchIngredients b
case tryIngredients benchIngredients (setOption (NumThreads 1) opts) b of
Nothing -> exitFailure
Just act -> act >>= \x -> if x then exitSuccess else exitFailure

Instead of calling Tasty.Bench.defaultMain, you can inline it and replace "All" with anything you like, e. g., an empty string.

from tasty-bench.

ribosomerocker avatar ribosomerocker commented on May 29, 2024

Oh, alright. Thank you very much. Sorry for using issues sort of like guide questions. Cheers!

from tasty-bench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.