Measures71d13b5againstaa2259bon OpenTitan hw (CLI, LSP, MCP), with raw logs and drivers under docs/perf/take6-20261126/. Docs only. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
26 lines
1.5 KiB
Bash
26 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
# Author: Guoliang Chen, a Senior Digital Design Engineer
|
|
# Every tools/perf/bench.py phase, both binaries, alternating which goes first.
|
|
S=$1; shift
|
|
R=/Users/lucio/repo/lucisv; OT=/Users/lucio/repo/opentitan
|
|
PHASES=${*:-"baseline verbose scan scopes nav flush codeaction portaction rename tailrename blockers widen didopen diagnostics completion tailcompletion hierarchy rss refactor execute offerkinds offerqueue offeredit renametrace renamewarn extractrefuse scanprofile scanwait scanserve actionprofile ruleablation snapshotrss scanload scanloadcross scanloadcold"}
|
|
mkdir -p "$S/lsp-logs"; i=0
|
|
for ph in $PHASES; do
|
|
if [ $((i%2)) = 0 ]; then ord=(base:0.66.2 head:HEAD); else ord=(head:HEAD base:0.66.2); fi
|
|
for v in "${ord[@]}"; do
|
|
bin=${v%%:*}; label=${v##*:}
|
|
l0=$(sysctl -n vm.loadavg); t0=$(date +%s)
|
|
"$R/tools/guard.sh" -m 8 -t 1200 -- python3 "$R/tools/perf/bench.py" "$ph" \
|
|
--server "$S/bin-$bin/lucisv-server" --label "$label" --opentitan "$OT" \
|
|
--storage "$S/store/$label" --out "$S/lsp-results.jsonl" --tries 3 \
|
|
> "$S/lsp-logs/$ph.$label.log" 2>&1
|
|
rc=$?
|
|
porc=$(git -C "$OT" status --porcelain | wc -l | tr -d ' ')
|
|
echo "$(date +%T) $ph $label exit=$rc secs=$(( $(date +%s) - t0 )) load_before=$l0 load_after=$(sysctl -n vm.loadavg) ot_porcelain=$porc"
|
|
if [ "$porc" != 0 ]; then echo "OPENTITAN DIRTY - STOP"; exit 3; fi
|
|
done
|
|
i=$((i+1))
|
|
done
|
|
|
|
# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
|