diff --git a/src/runtime-prototype/README.md b/src/runtime-prototype/README.md index 64d12b99..9cc97991 100644 --- a/src/runtime-prototype/README.md +++ b/src/runtime-prototype/README.md @@ -124,6 +124,7 @@ not. #### How to run tests +```bash cabal configure test \ --test-option='--timeout=10' \ --test-option='--color=always' \ @@ -131,3 +132,8 @@ cabal configure test \ --ghc-options='-threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts' \ # --test-option='--pattern=/$pattern/ cabal test +``` + +#### How to run benchmarks + +`cabal bench` diff --git a/src/runtime-prototype/bench/Main.hs b/src/runtime-prototype/bench/Main.hs new file mode 100644 index 00000000..da9c0f13 --- /dev/null +++ b/src/runtime-prototype/bench/Main.hs @@ -0,0 +1,8 @@ +module Main where + +import StuntDouble + +------------------------------------------------------------------------ + +main :: IO () +main = return () diff --git a/src/runtime-prototype/stunt-double.cabal b/src/runtime-prototype/stunt-double.cabal index 44a011f9..20550556 100644 --- a/src/runtime-prototype/stunt-double.cabal +++ b/src/runtime-prototype/stunt-double.cabal @@ -24,21 +24,21 @@ library StuntDouble.ActorMap StuntDouble.Datatype StuntDouble.Envelope - StuntDouble.Transport - StuntDouble.Transport.Http - StuntDouble.Transport.NamedPipe - StuntDouble.Transport.Stm StuntDouble.FreeMonad - StuntDouble.Histogram StuntDouble.Frontend.Http - StuntDouble.Log + StuntDouble.Histogram StuntDouble.IO + StuntDouble.Log StuntDouble.Message + StuntDouble.Metrics StuntDouble.Random StuntDouble.Reference StuntDouble.Supervisor StuntDouble.Time - StuntDouble.Metrics + StuntDouble.Transport + StuntDouble.Transport.Http + StuntDouble.Transport.NamedPipe + StuntDouble.Transport.Stm -- GHC boot library dependencies: -- (https://gitlab.haskell.org/ghc/ghc/-/blob/master/packages) @@ -56,17 +56,17 @@ library build-depends: aeson , async + , atomic-primops , bytestring - , heaps , hashable + , heaps , http-client , http-types , random , unordered-containers + , vector , wai , warp - , atomic-primops - , vector default-language: Haskell2010 @@ -88,13 +88,13 @@ test-suite test other-modules: StuntDouble.ActorMapTest - StuntDouble.Transport.HttpTest - StuntDouble.Transport.StmTest - StuntDouble.Transport.NamedPipeTest StuntDouble.FrontendTest StuntDouble.HistogramTest StuntDouble.RandomTest StuntDouble.SchedulerTest + StuntDouble.Transport.HttpTest + StuntDouble.Transport.NamedPipeTest + StuntDouble.Transport.StmTest TastyDiscover ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts @@ -111,3 +111,11 @@ executable stunt-double -- hs-source-dirs: ghc-options: -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010 + +benchmark bench + type: exitcode-stdio-1.0 + hs-source-dirs: bench/ + main-is: Main.hs + build-depends: + base + , stunt-double