Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nofib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
nofib
Commits
5e7532d4
Commit
5e7532d4
authored
12 years ago
by
dterei
Browse files
Options
Downloads
Patches
Plain Diff
Improve README and convert to markdown.
parent
c4bcc96e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+30
-14
30 additions, 14 deletions
README.md
with
30 additions
and
14 deletions
README
→
README
.md
+
30
−
14
View file @
5e7532d4
This is the root directory of the "NoFib Haskell benchmark suite". It
# NoFib: Haskell Benchmark Suite
This is the root directory of the "NoFib Haskell benchmark suite". It
should be part of a GHC source tree, that is the 'nofib' directory
should be part of a GHC source tree, that is the 'nofib' directory
should be at the same level in the tree as 'compiler' and 'libraries'.
should be at the same level in the tree as 'compiler' and 'libraries'.
To run the tests:
## Package Depedencies
Please make sure you have the following packages installed for your
system GHC:
*
html
*
regex-compat (will install: mtl, regex-base, regex-posix)
## Using
Then, to run the tests, execute:
$ make clean
$ make clean
$ make boot
$ make boot
$ make 2>&1 | tee nofib-log
$ make 2>&1 | tee nofib-log
will put the results in the file 'nofib-log'. You can pass extra
options to a
This
will put the results in the file 'nofib-log'. You can pass extra
nofib run using the EXTRA_HC_OPTS variable like this:
options to a
nofib run using the EXTRA_HC_OPTS variable like this:
$ make clean
$ make clean
$ make boot
$ make boot
$ make EXTRA_HC_OPTS="-fllvm" >&1 | tee nofib-llvm-log
$ make EXTRA_HC_OPTS="-fllvm" >&1 | tee nofib-llvm-log
To compare the results of multiple runs, use the program in
To compare the results of multiple runs, use the program in
../utils/nofib-analyse
. Something like this
:
../utils/nofib-analyse
, for example
:
$ nofib-analyse nofib-log-6.4.2 nofib-log-6.6
$ nofib-analyse nofib-log-6.4.2 nofib-log-6.6
to generate a comparison of the runs in captured in 'nofib-log-6.4.2'
to generate a comparison of the runs in captured in 'nofib-log-6.4.2'
and 'nofib-log-6.6'.
When making comparisons, be careful to ensure
and 'nofib-log-6.6'. When making comparisons, be careful to ensure
that the things that changed between the builds are only the things
that the things that changed between the builds are only the things
that you
*
wanted
*
to change.
There are lots of variables: machine,
that you
_
wanted
_
to change. There are lots of variables: machine,
GHC version, GCC version, C libraries, static vs. dynamic GMP library,
GHC version, GCC version, C libraries, static vs. dynamic GMP library,
build options, run options, and probably lots more.
To be on the safe
build options, run options, and probably lots more. To be on the safe
side, make both runs on the same unloaded machine.
side, make both runs on the same unloaded machine.
## Configuration
There are some options you might want to tweak; search for nofib in
../mk/config.mk, and override settings in ../mk/build.mk as usual.
## Extra Metrics: Valgrind
To get instruction counts, memory reads/writes, and "cache misses",
To get instruction counts, memory reads/writes, and "cache misses",
you'll need to get hold of Cachegrind, which is part of Valgrind
you'll need to get hold of Cachegrind, which is part of Valgrind
(http://valgrind.org).
(http://valgrind.org).
There are some options you might want to tweak; search for nofib in
## Extra Packages
../mk/config.mk, and override settings in ../mk/build.mk as usual.
Package Requirements:
Some benchmarks aren't run by default and require extra packages are
* html
installed for the GHC compiler being tested. These packages include:
* regex-compat (mtl, regex-base, regex-posix)
*
stm - for smp benchmarks
* stm (for smp benches)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment