asv.plugins.regressions

Classes

Regressions

A base class for pages displaying output in the JS application

_GraphDataFilter

Obtain data sets from graphs, following configuration settings.

Module Contents

class asv.plugins.regressions.Regressions[source]

A base class for pages displaying output in the JS application

name = 'regressions'[source]
button_label = 'Show regressions'[source]
description = 'Display information about recent regressions'[source]
order = 3[source]
classmethod publish(conf, repo, benchmarks, graphs, revisions)[source]
classmethod _process_regression(regressions, revision_to_hash, repo, all_params, graph_data, graph)[source]
classmethod _save(conf, data)[source]
classmethod _save_feed(conf, benchmarks, data, revisions, revision_to_hash)[source]

Save the results as an Atom feed

class asv.plugins.regressions._GraphDataFilter(conf, repo, revisions)[source]

Obtain data sets from graphs, following configuration settings.

conf[source]
repo[source]
revisions[source]
_start_revisions[source]
get_graph_data(graph, benchmark)[source]

Iterator over graph data sets

Yields

param_idx

Flat index to parameter permutations for parameterized benchmarks. None if benchmark is not parameterized.

entry_name

Name for the data set. If benchmark is non-parameterized, this is the benchmark name.

steps

Steps to consider in regression detection.

threshold

User-specified threshold for regression detection.

_get_start_revision(graph, benchmark, entry_name)[source]

Compute the first revision allowed by asv.conf.json.

Revisions correspond to linearized commit history and the regression detection runs on this order — the starting commit thus corresponds to a specific starting revision.

_get_threshold(graph, benchmark, entry_name)[source]

Compute the regression threshold in asv.conf.json.