Skip to content

Commit 46a3dd5

Browse files
authored
Merge pull request tobami#269 from tobami/document-historical-plots
Document historical plots
2 parents a741922 + c439b8f commit 46a3dd5

2 files changed

Lines changed: 593 additions & 520 deletions

File tree

README.md

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Known to be used by [CPython](https://speed.python.org), [PyPy](http://speed.pyp
88

99
For an overview of some application concepts see the [wiki page](https://github.com/tobami/codespeed/wiki/Overview)
1010

11-
# Installation
11+
## Installation
1212

1313
You will need Python 2.7 or 3.5+.
1414

@@ -50,17 +50,17 @@ The codespeed installation can now be accessed by navigating to `http://localhos
5050
modify `sample_project/settings.py` and set `DEBUG = False`.
5151
[`sample_project/README.md`](https://github.com/tobami/codespeed/tree/master/sample_project/README.md) also describes some production settings.
5252

53-
# Codespeed configuration
53+
## Codespeed configuration
5454

55-
## Using the provided test data
55+
### Using the provided test data
5656

5757
If you want to test drive Codespeed, you can use the testdata.json fixtures to have a working data set to browse.
5858

5959
* From the root directory, type:
6060

6161
./manage.py loaddata codespeed/fixtures/testdata.json
6262

63-
## Starting from scratch
63+
### Starting from scratch
6464

6565
Before you can start saving (and displaying) data, you need to first create an
6666
environment and define a default project.
@@ -78,7 +78,7 @@ field will be shown in the Changes and Timeline views.
7878

7979
**Note**: Git and Mercurial need to locally clone the repository. That means that your `sample_project/repos` directory will need to be owned by the server. In the case of a typical Apache installation, you'll need to type `sudo chown www-data:www-data sample_project/repos`
8080

81-
# Saving data
81+
## Saving data
8282

8383
Data is saved POSTing to `http://localhost:8000/result/add/`.
8484

@@ -95,9 +95,9 @@ environment. It must always exist or the data won't be saved (that is the reason
9595
it is described as a necessary step in the previous "Codespeed configuration"
9696
section).
9797

98-
# Further customization
98+
## Further customization
9999

100-
## Custom Settings
100+
### Custom Settings
101101

102102
You may override any of the default settings by setting them in
103103
`sample_project/settings.py`. It is strongly recommended that you only override the
@@ -157,18 +157,20 @@ same name.
157157
</div>
158158
{% endblock %}
159159

160+
### Baselines and Comparison view executables
160161

161-
## Baselines and Comparison view executables
162162
* The results associated to an executable and a revision which has a non blank
163163
tag field will be listed as a baseline option in the Timeline view.
164164
* Additionaly, the Comparison view will show the results of the latest revision
165165
of projects being tracked as an executable as well.
166166

167-
## Defaults
167+
### Defaults
168+
168169
The file `sample_project/settings.py` can contain customizations of
169170
several parameters (the file includes comments with full examples).
170171

171-
### General settings:
172+
### General settings
173+
172174
* `WEBSITE_NAME`: The RSS results feed will use this parameter as the site name
173175
* `DEF_BASELINE`: Defines which baseline option will be chosen as default in
174176
the Timeline and Changes views.
@@ -177,19 +179,35 @@ several parameters (the file includes comments with full examples).
177179
* `CHANGE_THRESHOLD`
178180
* `TREND_THRESHOLD`
179181

182+
### Home Page
183+
184+
The main customization for the homepage is to display either the reports
185+
(daily changes) or the historical graphs (improvement over time).
186+
187+
* `SHOW_REPORTS`: If set to `True` displays a table and RSS feed with the latest results
188+
* `SHOW_HISTORICAL`: Displays two graphs comparing tagged and latest versions of the default executable and project to the configured baseline.
189+
190+
To activate the historical graphs you will need to set the following settings (using values that work with the test data):
191+
192+
* `DEF_BASELINE = {'executable': 'baseExe', 'revision': '444'}`
193+
* `DEF_EXECUTABLE = "myexe O3 64bits"`
194+
180195
### Changes View
196+
181197
* `DEF_EXECUTABLE`: in the Changes view, a random executable is chosen as
182198
default. It that doesn't suite you, you can specify here which one should be
183199
selected. You need to specify its id (since the name alone is not unique).
184200

185201
### Timeline View
202+
186203
* `DEF_BENCHMARK`: Defines the default timeline view. Possible values:
187-
* `None`: will show a grid of plot thumbnails, or a text message when the number of plots exceeds 30
188-
* `grid`: will always show as default the grid of plots
189-
* `show_none`: will show a text message (better default when there are lots of benchmarks)
190-
* `mybench`: will select benchmark named "mybench"
204+
* `None`: will show a grid of plot thumbnails, or a text message when the number of plots exceeds 30
205+
* `grid`: will always show as default the grid of plots
206+
* `show_none`: will show a text message (better default when there are lots of benchmarks)
207+
* `mybench`: will select benchmark named "mybench"
191208

192209
### Comparison View
210+
193211
* `CHART_TYPE`: Chooses the default chart type (normal bars, stacked bars or
194212
relative bars)
195213
* `NORMALIZATION`: Defines whether normalization should be enabled as default
@@ -208,6 +226,7 @@ COMP_EXECUTABLES = [
208226
```
209227

210228
## Getting help
229+
211230
For help regarding the configuration of Codespeed, or to share any ideas or
212231
suggestions you may have, please post on Codespeed's [discussion
213232
group](http://groups.google.com/group/codespeed)

0 commit comments

Comments
 (0)