Switch from criterion to tasty-bench (#410)

This commit is contained in:
ˌbodʲɪˈɡrʲim 2022-04-18 09:52:24 +01:00 committed by GitHub
parent 1cd9f2ebe1
commit 3011495606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -9,6 +9,7 @@ The changelog is available [on GitHub][2].
* [#372](https://github.com/kowainik/relude/issues/372):
Warn on usages of `readFileText`, `readFileLText`, `readFile` and `readFile'`.
* Support `hashable ^>=1.4`
* Switch benchmarks from `criterion` to `tasty-bench`.
## 1.0.0.1 — Mar 15, 2021

View File

@ -5,8 +5,7 @@ module Main (main) where
import Relude hiding (show)
import Data.List (nub)
import Criterion (Benchmark, bench, bgroup, nf)
import Criterion.Main (defaultMain)
import Test.Tasty.Bench (Benchmark, bench, bgroup, defaultMain, nf)
import Prelude (show)
import qualified Data.HashSet as HashSet (insert)

View File

@ -270,9 +270,7 @@ benchmark relude-benchmark
main-is: Main.hs
build-depends: relude
, criterion
, tasty-bench
, unordered-containers
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
ghc-options: -rtsopts