{% if item.shard.cpu_sys_delta is not none and item.shard.cpu_user_delta is not none %}
{% set cpu_total = item.shard.cpu_sys_delta + item.shard.cpu_user_delta %}
{% set cpu_pct = (cpu_total / job.duration_seconds * 100) if job.duration_seconds > 0 else 0 %}
{% set cpu_cores = cpu_total / job.duration_seconds if job.duration_seconds > 0 else 0 %}