-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.py
85 lines (64 loc) · 4.07 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
"""Default settings for Codespeed"""
## General default options ##
WEBSITE_NAME = "MySpeedSite" # This name will be used in the reports RSS feed
DEF_ENVIRONMENT = None # Name of the environment which should be selected as default
DEF_BASELINE = None # Which executable + revision should be default as a baseline
# Given as the name of the executable and commitid of the revision
# Example: DEF_BASELINE = {'executable': 'baseExe', 'revision': '444'}
TREND = 10 # Default value for the depth of the trend
# Used by reports for the latest runs and changes view
# Threshold that determines when a performance change over the last result is significant
CHANGE_THRESHOLD = 3.0
# Threshold that determines when a performance change
# over a number of revisions is significant
TREND_THRESHOLD = 5.0
## Home view options ##
SHOW_REPORTS = True # Show report tables
SHOW_HISTORICAL = False # Show historical graphs
## Changes view options ##
DEF_EXECUTABLE = None # Executable that should be chosen as default in the changes view
# Given as the name of the executable.
# Example: DEF_EXECUTABLE = "myexe O3 64bits"
SHOW_AUTHOR_EMAIL_ADDRESS = True # Whether to show the authors email address in the
# changes log
## Timeline view options ##
DEF_BENCHMARK = None # Default selected benchmark. Possible values:
# None: will show a grid of plot thumbnails, or a
# text message when the number of plots exceeds 30
# "grid": will always show as default the grid of plots
# "show_none": will show a text message (better
# default when there are lots of benchmarks)
# "mybench": will select benchmark named "mybench"
DEF_TIMELINE_LIMIT = 50 # Default number of revisions to be plotted
# Possible values 10,50,200,1000
TIMELINE_GRID_LIMIT = 30 # Number of benchmarks beyond which the timeline view
# is disabled as default setting. Too many benchmarks make
# the view slow, and put load on the database, which may be
# undeseriable.
TIMELINE_GRID_PAGING = 4 # Number of benchmarks to be send in one grid request
# May be adjusted to improve the performance of the timeline grid view.
# If a large number of benchmarks is in the system,
# and the database is not fast, it can take a long time
# to send all results.
#TIMELINE_BRANCHES = True # NOTE: Only the default branch is currently shown
# Get timeline results for specific branches
# Set to False if you want timeline plots and results only for trunk.
## Comparison view options ##
CHART_TYPE = 'normal bars' # The options are 'normal bars', 'stacked bars' and 'relative bars'
NORMALIZATION = False # True will enable normalization as the default selection
# in the Comparison view. The default normalization can be
# chosen in the defaultbaseline setting
CHART_ORIENTATION = 'vertical' # 'vertical' or 'horizontal can be chosen as
# default chart orientation
COMP_EXECUTABLES = None # Which executable + revision should be checked as default
# Given as a list of tuples containing the
# name of an executable + commitid of a revision
# An 'L' denotes the last revision
# Example:
# COMP_EXECUTABLES = [
# ('myexe', '21df2423ra'),
# ('myexe', 'L'),]
USE_MEDIAN_BANDS = True # True to enable median bands on Timeline view
ALLOW_ANONYMOUS_POST = True # Whether anonymous users can post results
REQUIRE_SECURE_AUTH = True # Whether auth needs to be over a secure channel