Benchmark using wallclock time instead of CPU time (#3)

This requires upgrading to a newer version of `nixpkgs` to pick up
a newer version of the `tasty-bench` package in order to support
benchmarking using wall-clock time
This commit is contained in:
Gabriella Gonzalez
2022-08-31 14:06:16 -07:00
committed by GitHub
parent 4ac870a142
commit 166672a78f
3 changed files with 18 additions and 8 deletions

View File

@@ -1,6 +1,16 @@
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE OverloadedStrings #-}
{-| To benchmark `nix-serve-ng`, run the following commands:
> $ nix build
> $ PATH="./result/bin:${PATH}" cabal v1-bench --benchmark-option=--time-mode=wall
You can compare against the old `nix-serve` by changing the first command
to:
> $ nix build --file '<nixpkgs>' nix-serve
-}
module Main where
import Control.Applicative (empty)