{% macro render(task) -%}
{% if 'requests_per_sec' in task.ctx %}
{% set best = task.ctx['requests_per_sec']|sort|last|round(3) %}
Best rps: {{best}}
{% if 'fail_rates' in task.ctx %}
{% set max_fail = task.ctx['fail_rates']|sort|last %}
{% set min_fail = task.ctx['fail_rates']|sort|first %}
Min fail rate: {{min_fail}},
max fail rate: {{max_fail}}
{% endif %}
{% if 'notfound_rates' in task.ctx %}
{% set max_notfound = task.ctx['notfound_rates']|sort|last %}
Max notfound rate: {{max_notfound}}
{% endif %}
{% if 'pmap_RSS' in task.ctx %}
{% set mem = task.ctx['pmap_RSS'] %}
Rss memory for models.archive (pmap): {{mem}} kB
{% endif %}
Execution info:
{% for resource in task.list_resources('EXECUTOR_STAT') %}
{% set i = loop.length - loop.index0 - 1 %}
[show/hide] {{resource.name}} |
{% set v = task.ctx['requests_per_sec'][i] %}
RPS: {{v}}
{% if 'fail_rates' in task.ctx %}
{% set session_fail = task.ctx['fail_rates'][i] %}
Fail Rate: {{session_fail}}
{% endif %}
{% if 'memory_rss' in task.ctx %}
{% set mem = task.ctx['memory_rss'][i] %}
rss memory (vmtouch): {{mem}} kB
{% endif %}
{% if 'memory_vsz' in task.ctx %}
{% set mem = task.ctx['memory_vsz'][i] %}
vsz memory (vmtouch): {{mem}} kB
{% endif %}
{% if resource %}