Skip to content

Instantly share code, notes, and snippets.

@rrnewton
Last active December 17, 2015 20:29
Show Gist options
  • Save rrnewton/5667800 to your computer and use it in GitHub Desktop.
Save rrnewton/5667800 to your computer and use it in GitHub Desktop.
Example output from a very simple hsbencher run.
$ cat > minimal.hs
import HSBencher
main = defaultMainWithBechmarks
[ mkBenchmark "bench1/bench1.cabal" ["1000"] $
Or [ Set NoMeaning (RuntimeParam "+RTS -qa -RTS")
, Set NoMeaning (RuntimeEnv "HELLO" "yes") ] ]
$ runghc minimal.hs
* Executing: hostname -s --> 1 line(s)
* Executing: git name-rev --name-only HEAD --> 1 line(s)
* Executing: git rev-parse HEAD --> 1 line(s)
* Executing: git log --pretty=format:'%H' --> 244 line(s)
* Executing: date +%Y%m%d_%s --> 1 line(s)
* Executing: ls *.cabal --> 1 line(s)
[hsbencher] Beginning benchmarking, root directory: /ffh/ryan/cloud_drive/working_copies/bench-scaling
[hsbencher] Clearing any preexisting files in ./bin/
[hsbencher] Writing header for result data file:
* Executing: echo "# TestName Variant NumThreads MinTime MedianTime MaxTime Productivity1 Productivity2 Productivity3" --> 1 line(s)
* Executing: echo "# " --> 1 line(s)
* Executing: echo "# `date`" --> 1 line(s)
* Executing: echo "# `uname -a`" --> 1 line(s)
* Executing: echo "# Ran by: `whoami` " --> 1 line(s)
* Executing: echo "# Determined machine to have 8 hardware threads." --> 1 line(s)
* Executing: echo "# " --> 1 line(s)
* Executing: echo "# Running each test for 1 trial(s)." --> 1 line(s)
* Executing: echo "# Git_Branch: master" --> 1 line(s)
* Executing: echo "# Git_Hash: f6e0677353680f4c6670316c9c91ce729f19ed0e" --> 1 line(s)
* Executing: echo "# Git_Depth: 244" --> 1 line(s)
* Executing: echo "# Path registry: fromList []" --> 1 line(s)
# TestName Variant NumThreads MinTime MedianTime MaxTime Productivity1 Productivity2 Productivity3
#
# Tue May 28 23:41:55 EDT 2013
# Darwin RN-rMBP.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
# Ran by: rrnewton
# Determined machine to have 8 hardware threads.
#
# Running each test for 1 trial(s).
# Git_Branch: master
# Git_Hash: f6e0677353680f4c6670316c9c91ce729f19ed0e
# Git_Depth: 244
# Path registry: fromList []
--------------------------------------------------------------------------------
[hsbencher] Running all benchmarks for all settings ...
[hsbencher] Compiling: 1 total configurations of 1 benchmarks
* Benchmark/args: bench1/bench1.cabal ["1000"]
And []
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Compiling Config 1 of 1: bench1.cabal (args "1000") confID ""
--------------------------------------------------------------------------------
[hsbencher] Found 1 methods that can handle bench1/bench1.cabal: ["cabal"]
[cabalMethod] Switched to bench1, clearing binary target dir...
* Executing command: rm -rf ./bin/*
* Command completed with 0 lines of output.
[cabalMethod] Running cabal command: cabal install --bindir=./bin/ ./ --program-suffix=_
* Executing command: cabal install --bindir=./bin/ ./ --program-suffix=_
[cabal] Resolving dependencies...
[cabal] Configuring bench1-0.1...
[cabal] Building bench1-0.1...
[cabal] Preprocessing executable 'bench1_cabal' for bench1-0.1...
[cabal] [1 of 1] Compiling Main ( Hello.hs, dist/build/bench1_cabal/bench1_cabal-tmp/Main.o )
[cabal] Linking dist/build/bench1_cabal/bench1_cabal ...
[cabal] [stderr] Warning: No documentation was generated as this package does not contain a
[cabal] [stderr] library. Perhaps you want to use the --executables flag.
[cabal] Installing executable(s) in ./bin/
[cabal] Installed bench1-0.1
[cabal] Updating documentation index /Users/rrnewton/.cabal/share/doc/index.html
[cabal] [stderr]
[cabal]
* Command completed with 13 lines of output.
[hsbencher] Compile finished, result: StandAloneBinary bench1/bin/bench1_cabal_
--------------------------------------------------------------------------------
Running Config 1 of 2
--------------------------------------------------------------------------------
[hsbencher] (In directory /ffh/ryan/cloud_drive/working_copies/bench-scaling)
[hsbencher] Next run 'who', reporting users other than the current user. This may help with detectivework.
* Executing: who --> 13 line(s)
[hsbencher] Who_Output:
Running trial 1 of 1
------------------------
[hsbencher] Executing command: bench1/bin/bench1_cabal_ 1000 +RTS -qa -RTS
Hello world.
SELFTIMED 0.3
>>> MIN/MEDIAN/MAX (TIME,PROD) 0.3 0.3 0.3
--------------------------------------------------------------------------------
Running Config 2 of 2
--------------------------------------------------------------------------------
[hsbencher] (In directory /ffh/ryan/cloud_drive/working_copies/bench-scaling)
[hsbencher] Next run 'who', reporting users other than the current user. This may help with detectivework.
* Executing: who --> 13 line(s)
[hsbencher] Who_Output:
Running trial 1 of 1
------------------------
[hsbencher] Executing command: bench1/bin/bench1_cabal_ 1000
Hello world.
SELFTIMED 0.3
>>> MIN/MEDIAN/MAX (TIME,PROD) 0.3 0.3 0.3
--------------------------------------------------------------------------------
Finished with all test configurations.
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment