Skip to content

Commit

Permalink
Merge pull request haskell#69 from idontgetoutmuch/legacy-benchmark
Browse files Browse the repository at this point in the history
Resurrect legacy benchmarks
  • Loading branch information
curiousleo authored Apr 3, 2020
2 parents b7be4da + d34570b commit 9574756
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 27 deletions.
24 changes: 0 additions & 24 deletions Benchmark/Makefile

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE BangPatterns, ScopedTypeVariables, ForeignFunctionInterface #-}
{-# LANGUAGE BangPatterns, CPP, ScopedTypeVariables, ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fwarn-unused-imports #-}

-- | A simple script to do some very basic timing of the RNGs.
Expand Down Expand Up @@ -44,7 +44,7 @@ import GHC.IO
-- Miscellaneous helpers:

-- Readable large integer printing:
commaint :: Integral a => a -> String
commaint :: Show a => a -> String
commaint n =
reverse $ concat $
intersperse "," $
Expand Down
14 changes: 14 additions & 0 deletions random.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,17 @@ test-suite spec
tasty -any,
tasty-smallcheck -any,
tasty-expected-failure -any

benchmark legacy-bench
type: exitcode-stdio-1.0
main-is: SimpleRNGBench.hs
hs-source-dirs: bench-legacy
other-modules: BinSearch
default-language: Haskell2010
ghc-options: -Wall -O2 -threaded -rtsopts -with-rtsopts=-N
build-depends:
base -any,
random -any,
rdtsc -any,
split -any,
time -any
3 changes: 2 additions & 1 deletion stack-coveralls.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
resolver: lts-14.27
packages:
- .
extra-deps: []
extra-deps:
- rdtsc-1.3.0.1@sha256:0a6e8dc715ba82ad72c7e2b1c2f468999559bec059d50540719a80b00dcc4e66,1557
flags:
splitmix:
random: false

0 comments on commit 9574756

Please sign in to comment.