Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/evidence/r1-raw-block-store/measurement-57d1135/aggregate.sh # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / evidence / r1-raw-block-store / measurement-57d1135 / aggregate.sh` 20 lines ยท 958 bytes Raw Blame History 1 #!/bin/bash 2 # Median and range over the three interleaved invocations per arm and agent count. 3 set -eu 4 O=${1:-$HOME/workspace/r1-bench/out} 5 jq -n --slurpfile r1 <(jq -c '.cells[] + {arm:"r1"}' $O/report-r1-*.json) \ 6 --slurpfile a2 <(jq -c '.cells[] + {arm:"a2"}' $O/report-a2-*.json) ' 7 def med: sort | .[(length/2|floor)]; 8 def stat(f): [ .[] | f ] | {median: med, min: min, max: max, samples: .}; 9 ($r1 + $a2) | group_by(.arm, .agents) | map({ 10 arm: .[0].arm, agents: .[0].agents, 11 interval_ms: stat(.interval_s*1000), 12 interval_bound_ms: (.[0].interval_bound_s*1000), 13 interval_fraction: stat(.interval_fraction), 14 latency_p50_ms: stat(.latency.p50_ms), latency_p99_ms: stat(.latency.p99_ms), 15 latency_fraction_p50: stat(.latency_fraction), 16 pkg_mj_per_change: stat(.pkg_j_per_change*1000), 17 energy_bound_mj: stat(.energy_bound_j*1000), 18 energy_fraction: stat(.energy_fraction), 19 mean_batch: stat(.mean_batch) 20 })'