omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / docs / osc / audit / baseline / agg.sh
| 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | R="${1:-$HOME/.claude/jobs/9d0b86f6/tmp/bench-scratch/runs}" |
| 18 | cd $R || exit 1 |
| 19 | sec() { awk -F: '{ if (NF==3) print $1*3600+$2*60+$3; else print $1*60+$2 }'; } |
| 20 | stat3() { sort -n | awk '{a[NR]=$1} END{printf "%s / %s / %s", a[int((NR+1)/2)], a[1], a[NR]}'; } |
| 21 | echo "name | wall_s med/min/max | maxRSS_kB med/min/max | user+sys_s med/min/max | n" |
| 22 | for n in rx_heartbeat_test rx_action_graph_test rx_state_projection_test rx_plan_reuse_test rx_sem_incremental_test rx_capability_query_test rx_semantic_comm_test rx_cognitive_routing_test rx_workflow_fusion_test rx_typed_results_test crumbline-learner-decode; do |
| 23 | w=$(grep -h 'Elapsed' $n.time.[1-5] | awk '{print $NF}' | sec | stat3) |
| 24 | m=$(grep -h 'Maximum resident' $n.time.[1-5] | awk '{print $NF}' | stat3) |
| 25 | c=$(for f in $n.time.[1-5]; do awk '/User time/{u=$NF}/System time/{s=$NF}END{print u+s}' $f; done | stat3) |
| 26 | k=$(ls $n.time.[1-5] 2>/dev/null | wc -l) |
| 27 | echo "$n | $w | $m | $c | $k" |
| 28 | done |
| 29 | echo; echo "SHIM results" |
| 30 | for n in rx_heartbeat_test rx_action_graph_test rx_state_projection_test rx_plan_reuse_test rx_sem_incremental_test rx_capability_query_test rx_semantic_comm_test rx_cognitive_routing_test rx_workflow_fusion_test rx_typed_results_test crumbline-learner-decode; do |
| 31 | echo "== $n (SHIM line groups: $(grep -c 'SHIM malloc=' $n.shimerr)) shimRSS_kB=$(grep 'Maximum resident' $n.shimtime | awk '{print $NF}')" |
| 32 | grep '^SHIM' $n.shimerr |
| 33 | done |
| 34 | echo; echo "exit codes not 0:"; grep -v 'rc=0' rc.txt |