{% macro print_run_details(title, runs) -%}

{{ title }}

{% if runs %} {% for run in runs %} {% endfor %}
Session RPS, P50 Fail rate (%) RSS memory (MB) VSZ memory (MB) Latency, P50 (ms) Latency, P99 (ms) Response size, P50 (bytes) Response size, max (bytes)
#{{ loop.index }} {{ "%.2f" % run['shooting.rps_0.5'] }} {{ "%.5f" % (100.0 * run['shooting.errors'] / run['dumper.total_requests']) }} {{ "%.0f" % (run['rss'] / 1024) }} {{ "%.0f" % (run['vsz'] / 1024) }} {{ run['shooting.latency_0.5'] / 1000 }} {{ run['shooting.latency_0.99'] / 1000 }} {{ run['shooting.response_size_0.5'] }} {{ run['shooting.response_size_1'] }}
{% else %} No runs yet {% endif %} {%- endmacro %} {{ print_run_details('Reference runs', runs.reference) }} {{ print_run_details('Test runs', runs.test) }}