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
- d2e6d26bMerge branch 'records-park55' into mainTracker
- f567f025|||PR records: park #55, no Claude workers ruleTracker
- c21aff6bMerge branch 'records-hm55c' into mainTracker
- 9ba258d3|||PR records: HM55b resultTracker
- 64f2d300Merge branch 'records-hm55b2' into mainTracker
- ae3b80dc|||PR records: HM55b briefTracker
- 7ef3cb3bMerge branch 'records-st55' into mainTracker
- fec2e080|||PR records: STATUS HM55Tracker
- 8e174918Merge branch 'records-hm55b' into mainTracker
- b1ecee57|||PR records: HM55 stateTracker
- 28eab08cMerge branch 'records-hm55' into mainTracker
- d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
- 3059f86cMerge branch 'records-design-rule' into mainTracker
- 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
- d1390692Merge branch 'records-dp75b' into mainTracker
- a4d1a7d2|||PR records: later steps checked, branch auditTracker
- e070e16fMerge branch 'records-dp75' into mainTracker
- 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
- bfc4ea4dMerge branch 'ap62' into mainTracker
- 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker