gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd049b8b8d049b8b8Log: HM50 live, #52 donemred049b8b8/tests/realdata-070-load200.sh

1.0 KB

  1. #!/bin/bash
  2. # load200.sh <which> <port>: 200 signed-in page loads (20 paths × 10) with curl, ms per path (avg/max) + RSS before/after
  3. R=/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/.scratch/w070/real-$1; port=$2; sid=$(cat $R/sid); pid=$(cat $R/server.pid)
  4. P="/ /movies /series /shows /franchises /my/series /my/shows /my/movies /my/unwatched /my/schedule /search/star /series/Elementary /series/Gotham /series/The-Simpsons /series/Star-Trek-Picard /movies/Superman /shows/CBS-Mornings /genres/Drama /series/page/2 /person/Patrick-Stewart"
  5. rss() { awk '/VmRSS/{printf "%.0f", $2/1024}' /proc/$pid/status; }
  6. echo "rss before: $(rss) MB"
  7. for i in $(seq 10); do for p in $P; do echo "$p $(curl -s -o /dev/null -w '%{http_code} %{time_total}' -b trackersid=$sid http://127.0.0.1:$port$p)"; done; done > $R/load200.txt
  8. echo "rss after: $(rss) MB"
  9. awk '{n[$1]++; s[$1]+=$3; if($3>m[$1])m[$1]=$3; c[$2]++} END {for(p in n) printf "%-28s avg %.3f max %.3f\n", p, s[p]/n[p], m[p]; for(k in c) print "status", k, c[k]}' $R/load200.txt | sort

Branches

Latest commits

  • d049b8b8Log: HM50 live, #52 donemre
  • 6d05fa37Log: HM50 Part A mergedmre
  • 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
  • e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
  • 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
  • 2f391aa9Log: HM50 startedmre
  • 4b59c03dHM50 mission: doc pathmre
  • ed526d67HM50 missionmre
  • 2f986ca3Log: RT50 passmre
  • 1c4715a4RT50 mission: day50 repro retestmre
  • 57d1c0dcLog: day50 retest requestmre
  • 60b1f419Log: Anton #336 result, wake checkmre
  • 919a18aalog: scratchmre
  • 6b504440status tidymre
  • 9332bd10log: DP70 livemre
  • be11daa0DP70 brief fixmre
  • 886a7028DP70 brief, HM67 mergedmre
  • b41cdd6dMerge hm67-searchids: packed search IDsmre
  • 385904eaReport HM67 matched heap measurements and gate proofmre
  • e5c9b659Pack retained search IDs into UTF-8 bytesmre