tracker
All repositories: gitoria
1.4 KB
// tests/slices-bench.hl — mission 044: the longest block a sliced job scan makes (one collectStep / mergePrepare call = what one timer tick// does) against the old whole-table scan, on a big store (tests/seed-bulk.hl with TRACKER_SEED_BULK=60000). Run with the app STOPPED.// TRACKER_STORAGE=<store> ./bin/hybriel tests/slices-bench.hlimport { now } from 'hl:time'import { showsTable } from '../lib/shows.hl'import { collectStart, collectStep, collected } from '../lib/slices.hl'import { mergePrepare } from '../lib/merge.hl'import { adultBackfillScan, adultPred } from '../lib/backfill.hl't0 = now()n = 0for (s of showsTable.find(null, null)) { n = n + 1 }console.log('OLD find(null,null) over ' + n + ' shows: ONE block of ' + (now() - t0) + ' ms')c = adultBackfillScan()let calls = 0let maxMs = 0let sum = 0t1 = now()while (true) {let a = now()done = collectStep(&c, adultPred)let d = now() - aif (d > maxMs) { maxMs = d }sum = sum + dcalls = calls + 1if (done) { break }}console.log('NEW adult scan: ' + calls + ' ticks, longest tick ' + maxMs + ' ms, total ' + sum + ' ms, ' + collected(&c).length + ' ids')t1 = now()calls = 0maxMs = 0while (true) {let a = now()done = mergePrepare()let d = now() - aif (d > maxMs) { maxMs = d }calls = calls + 1if (done) { break }}console.log('NEW merge prepare: ' + calls + ' ticks, longest tick ' + maxMs + ' ms, total ' + (now() - t1) + ' ms')
Branches
Latest commits
- fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
- b2e2206dlog: #63 livemre
- 5831e0e0log: HM64 donemre
- 4042b923Flatten catalog membership rows into paired slotsmre
- ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
- 40439456Merge hm63-searchtext: tracker#63 packed search textmre
- b7e6b48ePack normalized search text behind numeric offsetsmre
- b35f53e1log: DP62 stale runtime decisionmre
- f9593602log: Apollo deploy rule correctionmre
- 3c95f7f3log: DP62 and HM63 startedmre
- 9c4397c9mission HM63mre
- 8dfe42c8mission DP62mre
- e347fef4Merge rv44: tracker#61 #62 on Hybriel day44mre
- 8274bcf1log: RV44 done, deploy held for the usage windowmre
- 1ef7a3b1RV44: report day44 gates and migration/restart proofsmre
- a5f62f6cRV44: re-vendor Hybriel set day44 (source 222edef7, bin 4f0f263e)mre
- 6159a248Merge branch 'hm62-personindex' into rv44mre
- a8923d93log: RV44 startedmre
- cf28cf77mission RV44mre
- 585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre