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
- 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
- 16a3530fMerge branch 'heap-revert' into mainGitoria
- 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
- 13f0c342Merge branch 'hl25-records' into mainGitoria
- a002ecb7|||PR records: HL25 report, heap helper, logmre
- 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
- fefaedd2log: tracker PR-only, HL25 startedmre
- 21aa57calog: parkmre
- e9f950a8reports: G25c soakmre
- a7783686log: deploy 9f41ffcmre
- 9f41ffc1log: W30b mergedmre
- bef635c1Merge branch 'w30b'mre
- 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
- c4f6d9e3reports: G25c growth huntmre