gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit24e401b824e401b8Tracker: TR7 watch cleanmre24e401b8/tests/realdata-070-bench.sh

1.4 KB

  1. #!/bin/bash
  2. # bench.sh <new|old> <port> [ENV=VAL …]: the app on its copy with every job done (TRACKER_SYNC=0), boot RSS (60 s after
  3. # listening), 200 signed-in page loads (load200.sh), RSS after, then stop (by PID). Output → real-<which>/bench-<label>.txt
  4. W=/media/STORAGE/projects/WorldAPI/tracker.worldapi.org; which=$1; port=$2; shift 2
  5. R=$W/.scratch/w070/real-$which; tree=$W; [ "$which" = old ] && tree=$W/.scratch/w070/oldtree
  6. sid=$(head -c 16 /dev/urandom | xxd -p); now=$(date +%s%3N)
  7. echo "{\"created\":$now,\"data\":{\"tag\":\"t\"},\"id\":\"$sid\",\"seen\":$now,\"user\":{\"id\":\"0mujqspn0aqb\"}}" > $R/sessions/$(printf %s "$sid" | sha256sum | cut -d' ' -f1)
  8. echo $sid > $R/sid
  9. cd $tree
  10. env "$@" TRACKER_PORT=$port TRACKER_URL=http://127.0.0.1:$port HL_HOST=127.0.0.1 TRACKER_WATCH=0 TRACKER_SYNC=0 \
  11. TRACKER_STORAGE=$R/storage/mpackdb TRACKER_SESSIONS=$R/sessions/ TRACKER_OLD_SHORT_IDS=$tree/data/old-short-ids.json \
  12. setsid ./bin/hybriel project.hl > $R/bench-server.log 2>&1 < /dev/null &
  13. pid=$!; echo $pid > $R/server.pid
  14. t0=$(date +%s)
  15. until curl -s -o /dev/null http://127.0.0.1:$port/; do sleep 1; done
  16. up=$(( $(date +%s) - t0 ))
  17. sleep 60
  18. echo "listening after ${up} s; boot RSS (60 s later): $(awk '/VmRSS/{printf "%.0f", $2/1024}' /proc/$pid/status) MB"
  19. $W/tests/realdata-070-load200.sh $which $port
  20. grep -i "nothing to do\|off\|error" $R/bench-server.log | head -12
  21. kill $pid; wait $pid 2>/dev/null; echo stopped

Branches

Latest commits

  • 24e401b8Tracker: TR7 watch cleanmre
  • b0412957Tracker: RV28b handed overmre
  • 456940c8Tracker: RULINGS pathmre
  • b87a8fdcTracker: worldapi-conductor paths backmre
  • 641f3b54Tracker: Apollo answermre
  • 8b3cbddaTracker: status, TR7 fix livemre
  • ec30162aTracker: TR7 fix livemre
  • 54cbec80compose: ignore SIGPIPE (TR7 crash loop, exit 141)mre
  • 3e164b63Tracker: status after CL1mre
  • 9d686bb3Tracker: CL1 reviewedmre
  • b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mre
  • 298785f2Tracker: CL1 startedmre
  • 36b22710Tracker: port slot, CL1 briefmre
  • a401190fTracker: GO for the crash loopmre
  • e195d372Tracker: token pathsmre
  • 7f541d11Tracker conductor: CONDUCTOR.md, short STATUS.md, old status + decisions archive to archive/2026-10-31mre
  • 8dd423f7README: login.js stays by caramboleyo's explicit rulemre
  • d8df1493tracker: standby service on port 45018 and a gap-free hand-over in deploy.sh step 4mre
  • 36dd1686ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • ff9b838etracker: the Ended status pill uses the same red as layouts (pill danger); gate updatedmre