From 904fa69df4b296cdb86e34407d7da48b42167ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20G=C3=A9lineau?= Date: Thu, 21 Feb 2019 21:03:00 -0500 Subject: [PATCH] fairer benchmark with -O2 for everyone too-fast-too-free was compiled without -O2, which put it at a disadvantage compared to the code from the competing libraries, which is inside the benchmark project and was thus compiled with -O2. --- package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.yaml b/package.yaml index 8a5d9df..b0f61ae 100644 --- a/package.yaml +++ b/package.yaml @@ -26,6 +26,7 @@ dependencies: - mmorph library: + ghc-options: -O2 source-dirs: src executables: @@ -54,7 +55,6 @@ benchmarks: too-fast-too-free-bench: source-dirs: bench main: countDown.hs - ghc-options: -O2 dependencies: - criterion - free