Skip to content

Commit

Permalink
Move PQueue benches to Bench.Data.PQueue.Prio.Min
Browse files Browse the repository at this point in the history
Move priority queue benchmarks from Bench.PriorityQueue.MinPQueue to
Bench.Data.PQueue.Prio.Min, which better fits into the rest of the
module naming scheme.
  • Loading branch information
pgujjula committed May 16, 2024
1 parent 55692a0 commit 62e2b32
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apply-merge.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ benchmark apply-merge-benchmarks
Data.PQueue.Prio.Min.Mutable
Bench.ApplyMerge
Bench.Data.DoublyLinkedList.STRef
Bench.PriorityQueue.MinPQueue
Bench.PriorityQueue.MinPQueue.Mutable
Bench.Data.PQueue.Prio.Min
Bench.Data.PQueue.Prio.Min.Mutable
hs-source-dirs:
src
bench
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- SPDX-License-Identifier: BSD-3-Clause
{-# LANGUAGE CPP #-}

module Bench.PriorityQueue.MinPQueue (benchmarks) where
module Bench.Data.PQueue.Prio.Min (benchmarks) where

#if !MIN_VERSION_base(4,20,0)
import Data.List (foldl')
Expand Down Expand Up @@ -35,4 +35,4 @@ insertDeleteBenchmark = bgroup "insert/delete" (map mkBench [1 .. 6])
in getMin finalQueue

benchmarks :: Benchmark
benchmarks = bgroup "Bench.PriorityQueue.MinPQueue" [insertDeleteBenchmark]
benchmarks = bgroup "Data.PQueue.Prio.Min" [insertDeleteBenchmark]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- SPDX-FileCopyrightText: Copyright Preetham Gujjula
-- SPDX-License-Identifier: BSD-3-Clause
module Bench.PriorityQueue.MinPQueue.Mutable (benchmarks) where
module Bench.Data.PQueue.Prio.Min.Mutable (benchmarks) where

import Control.Monad (forM_)
import Control.Monad.ST (runST)
Expand Down Expand Up @@ -33,5 +33,5 @@ insertDeleteBenchmark = bgroup "insert/delete" (map mkBench [1 .. 6])
benchmarks :: Benchmark
benchmarks =
bgroup
"Bench.PriorityQueue.MinPQueue.Mutable"
"Data.PQueue.Prio.Min.Mutable"
[insertDeleteBenchmark]
8 changes: 4 additions & 4 deletions bench/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ module Main (main) where

import Bench.ApplyMerge qualified
import Bench.Data.DoublyLinkedList.STRef qualified
import Bench.PriorityQueue.MinPQueue qualified
import Bench.PriorityQueue.MinPQueue.Mutable qualified
import Bench.Data.PQueue.Prio.Min qualified
import Bench.Data.PQueue.Prio.Min.Mutable qualified
import Test.Tasty.Bench (defaultMain)

main :: IO ()
main =
defaultMain
[ Bench.ApplyMerge.benchmarks,
Bench.Data.DoublyLinkedList.STRef.benchmarks,
Bench.PriorityQueue.MinPQueue.benchmarks,
Bench.PriorityQueue.MinPQueue.Mutable.benchmarks
Bench.Data.PQueue.Prio.Min.benchmarks,
Bench.Data.PQueue.Prio.Min.Mutable.benchmarks
]

0 comments on commit 62e2b32

Please sign in to comment.