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:
committed by
GitHub
parent
4ac870a142
commit
166672a78f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user