gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9fb82efc9fb82efclog: HM54 gap, fill continuesmre9fb82efc/tests/slices-bench.hl

1.4 KB

  1. // tests/slices-bench.hl — mission 044: the longest block a sliced job scan makes (one collectStep / mergePrepare call = what one timer tick
  2. // 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.
  3. // TRACKER_STORAGE=<store> ./bin/hybriel tests/slices-bench.hl
  4. import { now } from 'hl:time'
  5. import { showsTable } from '../lib/shows.hl'
  6. import { collectStart, collectStep, collected } from '../lib/slices.hl'
  7. import { mergePrepare } from '../lib/merge.hl'
  8. import { adultBackfillScan, adultPred } from '../lib/backfill.hl'
  9. t0 = now()
  10. n = 0
  11. for (s of showsTable.find(null, null)) { n = n + 1 }
  12. console.log('OLD find(null,null) over ' + n + ' shows: ONE block of ' + (now() - t0) + ' ms')
  13. c = adultBackfillScan()
  14. let calls = 0
  15. let maxMs = 0
  16. let sum = 0
  17. t1 = now()
  18. while (true) {
  19. let a = now()
  20. done = collectStep(&c, adultPred)
  21. let d = now() - a
  22. if (d > maxMs) { maxMs = d }
  23. sum = sum + d
  24. calls = calls + 1
  25. if (done) { break }
  26. }
  27. console.log('NEW adult scan: ' + calls + ' ticks, longest tick ' + maxMs + ' ms, total ' + sum + ' ms, ' + collected(&c).length + ' ids')
  28. t1 = now()
  29. calls = 0
  30. maxMs = 0
  31. while (true) {
  32. let a = now()
  33. done = mergePrepare()
  34. let d = now() - a
  35. if (d > maxMs) { maxMs = d }
  36. calls = calls + 1
  37. if (done) { break }
  38. }
  39. console.log('NEW merge prepare: ' + calls + ' ticks, longest tick ' + maxMs + ' ms, total ' + (now() - t1) + ' ms')

Branches

Latest commits

  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • 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