From d9f4ad51a382747309317f47bdfe1d7b50f5819c Mon Sep 17 00:00:00 2001
From: Bodigrim <andrew.lelechenko@gmail.com>
Date: Mon, 8 Jan 2024 19:46:17 +0000
Subject: [PATCH] Switch from criterion to tasty-bench

Makes builds faster by eliminating 10 transitive dependencies:

* base-compat-batteries
* binary-orphans
* cassava
* code-page
* criterion
* criterion-measurement
* Glob
* js-chart
* microstache
* Only
---
 cabal-benchmarks/bench/CabalBenchmarks.hs | 2 +-
 cabal-benchmarks/cabal-benchmarks.cabal   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cabal-benchmarks/bench/CabalBenchmarks.hs b/cabal-benchmarks/bench/CabalBenchmarks.hs
index 4d8bbddd0f..39580898e8 100644
--- a/cabal-benchmarks/bench/CabalBenchmarks.hs
+++ b/cabal-benchmarks/bench/CabalBenchmarks.hs
@@ -1,7 +1,7 @@
 {-# OPTIONS_GHC -fno-warn-deprecations #-}
 module Main where
 
-import Criterion.Main                         (bench, bgroup, defaultMain, env, nf, whnf)
+import Test.Tasty.Bench                       (bench, bgroup, defaultMain, env, nf, whnf)
 import Distribution.PackageDescription.Parsec (parseGenericPackageDescriptionMaybe)
 import Distribution.Parsec                    (eitherParsec)
 import Distribution.Version
diff --git a/cabal-benchmarks/cabal-benchmarks.cabal b/cabal-benchmarks/cabal-benchmarks.cabal
index d2e9cb328b..d508c8a20e 100644
--- a/cabal-benchmarks/cabal-benchmarks.cabal
+++ b/cabal-benchmarks/cabal-benchmarks.cabal
@@ -31,4 +31,4 @@ test-suite cabal-benchmarks
       base
     , bytestring
     , Cabal-syntax
-    , criterion   >=1.5.6.2 && <1.7
+    , tasty-bench >= 0.3.5 && < 0.4
-- 
GitLab