{% import "simple_utils.html" as simple_utils %} {% import "utils.html" as utils %} {% set db = request.get_db() %} {% set run = db.getRun(id) %} {% set machine = run.machine %} {% extends "layout.html" %} {% set components = [(tag, db_url_for("simple_overview", tag=tag)), ('machine', db_url_for("simple_machine", tag=tag, id=machine.id))] %} {% block head %} {% endblock %} {% block title %}Run Results{% endblock %} {# Add JS to run the init_report function, if embedded. #} {% block onload %}init(){% endblock %} {% block javascript %} function init() { if (init_report) { init_report(); } } {% endblock %} {% block body %} {% macro get_cell_value(cr) %} {% set test_status = cr.get_test_status() %} {% set value_status = cr.get_value_status() %} {% set run_cell_value = "-" if cr.current is none else "%.4f" % cr.current %} {% if options.show_previous %} {% set prev_cell_value = "-" if cr.previous is none else "%.4f" % cr.previous %} {{prev_cell_value}} {% endif %} {% set cell_color = none %} {% if test_status == runinfo.REGRESSED %} {% set cell_color = (233,128,128) %} {% elif test_status == runinfo.IMPROVED %} {% set cell_color = (143,223,95) %} {% elif test_status == runinfo.UNCHANGED_FAIL %} {% set cell_color = (255,195,67) %} {% endif %} {% if cell_color %} {{ run_cell_value}} {% else %} {{run_cell_value}} {% endif %} {% if (options.show_all or value_status == runinfo.REGRESSED or value_status == runinfo.IMPROVED) %} {{ cr.pct_delta|aspctcell|safe }} {% else %} - {% endif %} {% if options.show_delta %} {{ "-" if cr.delta is none else "%.4f" % cr.delta }} {% endif %} {% if options.show_stddev %} {{ "-" if cr.stddev is none else "%.4f" % cr.stddev }} {% endif %} {% if options.show_mad %} {{ "-" if cr.MAD is none else "%.4f" % cr.MAD }} {% endif %} {% if options.show_all_samples %} [ {%- for v in cr.get_samples() -%} {{ ", " if not loop.first else "" }} {{ "%.4f" % v }} {%- endfor -%}] {% endif %} {% if options.show_sample_counts %} {{cr.get_samples()|length}} {% endif %} {% endmacro %} {% call simple_utils.simple_run_page(tag, machine, run, compare_to, neighboring_runs) %} {{ utils.render_popup_begin('view_options', 'View Options', true) }}
Show Delta:
Show Previous Value:
Show Standard Deviation:
Show Median Absolute Deviation:
Show All Values:
Show All Samples:
Show Sample Counts:
Number of Comparison Runs:
Show Report Graphs:
Show Data Table:
Hide Report By Default:
Test Filter (regexp):
{{ utils.render_popup_end() }} {{ utils.render_popup_begin('text_report', 'Report (Text)', true) }}
{{ text_report }}
{{ utils.render_popup_end() }} {{ utils.render_popup_begin('html_report', 'Report (HTML)', options.hide_report_by_default) }} {{html_report|safe}} {{ utils.render_popup_end() }}

Parameter Sets

{% for key in ts_summary.parameter_keys %} {% endfor %} {% for pmap in ts_summary.parameter_maps %} {% for key in ts_summary.parameter_keys %} {% set item = pmap.get(key) %} {% endfor %} {% endfor %}
Name Parameters
{{key}}
P{{loop.index0}}{{ "-" if item is none else item }}

Tests

{% set pset_cols = ( 2 + options.show_previous + options.show_delta + options.show_stddev + options.show_mad + options.show_all_samples + options.show_sample_counts) %}
{% for key in ts_summary.parameter_sets %} {% endfor %} {% for key in ts_summary.parameter_sets %} {% if options.show_previous %} {% endif %} {% if options.show_delta %} {% endif %} {% if options.show_stddev %} {% endif %} {% if options.show_mad %} {% endif %} {% if options.show_all_samples %} {% endif %} {% if options.show_sample_counts %} {% endif %} {% endfor %} {% for name in test_names|sort %} {% for pset in ts_summary.parameter_sets %} {% set cr = simple_run_info.get_run_comparison_result( run, run_status_kind, compare_to, compare_to_status_kind, name, pset, comparison_window) %} {{ get_cell_value(cr) }} {% endfor %} {% endfor %}
NameP{{loop.index0}}
Prev %ΔσMADSamplesN
{{name}}
{% if options.show_data_table %}

Test Data

Name{% for key in ts_summary.parameter_sets
%}	P{{loop.index0}}	P{{loop.index0}}	P{{loop.index0}}{%
 endfor %}
-{% for key in ts_summary.parameter_sets
%}	Prev	Value	%{% endfor %}
{% for name in test_names|sort %}
{{name}}{%
for pset in ts_summary.parameter_sets %}{%
  set cr = simple_run_info.get_run_comparison_result(
            run, run_status_kind, compare_to, compare_to_status_kind,
            name, pset, comparison_window)
%}	{{cr.previous}}	{{cr.current}}	{{cr.pct_delta}}{% endfor %}{%
endfor %}

{% endif %} {% endcall %} {% endblock %}