Skip to content

Commit

Permalink
Added quickstart.
Browse files Browse the repository at this point in the history
  • Loading branch information
safl committed Apr 2, 2015
1 parent b3628dc commit 257423e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 31 deletions.
24 changes: 1 addition & 23 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,5 @@ Read the full

on Benchpress or see below for a quick start.

Quick Start
===========

Fire up your terminal, and::

# Clone the repos
git clone git@github.com:bh107/benchpress.git

# Enter the root
cd benchpress

# Source environment vars
source util/setbpenv.bash

You now have the Benchpress commands, ``bp_run``, ``bp_times``, ``bp_info``, ``bp_compile``, and ``bp_grapher`` ready at your finger-tips along with all the benchmarks and suites.

Go ahead and run the `numpy_only` suite, executing each benchmark in the suite twice::

bp_run --no-perf --no-time --runs 2 --output my_run.json suites/numpy_only.py

The above will store results from the run in the file `my_run.json`. You can inspect the elapsed wall-clock by executing::

bp_times my_run.json
.. include:: doc/source/quickstart.rst

1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Contents:
.. toctree::
:maxdepth: 2

quickstart
install
tools
benchmarks
Expand Down
2 changes: 1 addition & 1 deletion doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Benchpress is distributed via PyPi and Github. Which means that you can install
The installation method of choice is based on what you want to do with Benchpress. Recommendations are as follows.

* Install Benchpress as a Python packages from PyPi if your sole intent is to `run` benchmarks.
* Use benchpress directly from clone/tarball if you intend to modify it. Such as adding benchmarks, changing commands or benchmark suites.
* Use Benchpress directly from clone/tarball if you intend to modify it. Such as adding benchmarks, changing commands or benchmark suites.

.. note:: Benchpress is designed to work, with minimal friction, in an environment where the user has limited system permissions. Such as shared computing environments, clusters and supercomputers. A system-wide installation of Benchpress is therefore untested. However, it should work if write permission is assigned to Benchpress users for the ``benchmarks`` folder.

Expand Down
24 changes: 24 additions & 0 deletions doc/source/quickstart.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Quick Start
===========

Fire up your terminal, and::

# Clone the repos
git clone git@github.com:bh107/benchpress.git

# Enter the root
cd benchpress

# Source environment vars
source util/setbpenv.bash

You now have the Benchpress commands, ``bp_run``, ``bp_times``, ``bp_info``, ``bp_compile``, and ``bp_grapher`` ready at your finger-tips along with all the benchmarks and suites.

Go ahead and run the `numpy_only` suite, executing each benchmark in the suite twice::

bp_run --no-perf --no-time --runs 2 --output my_run.json suites/numpy_only.py

The above will store results from the run in the file `my_run.json`. You can inspect the elapsed wall-clock by executing::

bp_times my_run.json

33 changes: 26 additions & 7 deletions doc/source/tools.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
=====
Usage
Using
=====

bp_info
-------

...

bp_compile
----------

...

bp_run
------

Expand All @@ -17,20 +27,29 @@ bp_grapher

...

Implementations / Libraries / Modules
=====================================
======================
Extending and Changing
======================

Benchmark Protocol and conventions
----------------------------------

...

Python
------

...

C / C++
-------
C
--

...

C++
---

...

Protocol
========

...

0 comments on commit 257423e

Please sign in to comment.