gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8d3b0f208d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre8d3b0f20/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

  • 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre
  • 1d98dcfdbrowser gate: the badges' size check reads the padding box (the 44 px tap area is transparent border)mre
  • 2f9e29ffreports/MK-mobile.md, deploy.sh GATES: tests/mobile.mjs, theme check markermre
  • 7cfc8ab5a season of more than 150 episodes starts closed on its title page; the phone gate checks itmre
  • 59095c59tests/mobile.mjs: the phone gate (390 px touch, tap targets, /franchises paging)mre
  • 105309detap targets: every row link, the TMDB/IMDb badges, the widget links, the franchise names and the login-failed link are 44 px high on a phonemre
  • f0b86c8efranchises: 40 loose timelines per page (/franchises/page/N) and a merge sort for the names (1,546 timelines: 20 s and 54,000 px before)mre
  • b9e841a7Merge branch 'sy-sync'mre
  • d1ae2701sync components.hybriel 4922f9c: modal and pagination 44 px targets (vendored copies, verbatim) (SY)mre
  • 043624b2theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 05d89fd0deploy: security gate (tests/security.mjs)mre
  • 2ae8a47bMerge branch 'sk-sec'mre
  • 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 944ad51eSK: report reports/SK-sec.md, LOGsk
  • 415487c1SK: import budget per user + id type check, gate checkssk
  • 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
  • f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
  • 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
  • 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
  • 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre