gitoria
All repositories: gitoria
1.3 KB
import http.client,time,json,concurrent.futures,pathlib,statistics,subprocessD=pathlib.Path('/media/STORAGE/claude-scratch/gitoria/W62')def req(port,path):t=time.perf_counter(); c=http.client.HTTPConnection('127.0.0.1',port,timeout=30);c.request('GET',path,headers={'Host':'routger.gitoria.test:8730'});r=c.getresponse();b=r.read();c.close();end=time.perf_counter();return {'start':t,'end':end,'ms':(end-t)*1000,'status':r.status,'bytes':len(b)}r={}for name,path in [('readme','/'),('file','/commit/50307fb70d28305efb345d6456ee12494a28840f/tests/subagents.mjs')]:r[name]=[]for i in range(7):pos=(D/'server.log').stat().st_size;a=req(8730,path);a['parts']=(D/'server.log').read_bytes()[pos:].decode();r[name].append(a)for i in range(120):try: a=req(8731,'/');breakexcept OSError:time.sleep(1)r['repro']={}for path in ['/','/true','/sleep']:r['repro'][path]=[req(8731,path) for i in range(5)]with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:f=ex.submit(req,8731,'/sleep');time.sleep(.025);g=ex.submit(req,8731,'/');r['blocking_pair']=[f.result(),g.result()](D/'followup.json').write_text(json.dumps(r,indent=2))for k,v in r.items():if isinstance(v,list): print(k,statistics.median(x['ms'] for x in v),max(x['ms'] for x in v))else:for name,vs in v.items():print(k,name,statistics.median(x['ms'] for x in vs))print('blocking pair',r['blocking_pair'])
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 55c84779Merge branch 'gp-gate-ports' into mainGitoria
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
- 6cc1f943Merge branch 'records-1112' into mainGitoria
- 9448c438|||PR records: LOG, missions and reports since 11-09mre
- 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
- 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
- 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
- 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria
- 698458e2|||PR No session for cookieless login errors: READMEmre
- cce7b785|||PR No session for cookieless login errorsmre
- 678d6303Merge branch 'v59' into mainGitoria
- 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
- 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
- 26117255|||PR apps API: review comments on files with spaces in their namemre
- b8796cecMerge branch 'f1-broken-json' into mainGitoria
- 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
- f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
- 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre