gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4399bc2f4399bc2fReference remaining component-owned root Style rulesmre4399bc2f/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

  • 4399bc2fReference remaining component-owned root Style rulesmre
  • aed12917Reference owned Style rules in genres and searchmre
  • 78ee6b56Move remaining component styles into Style blocksmre
  • 7f04de33log: HM49Bmre
  • 00616cf3log: #49 batch merged, DP67 startedmre
  • d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
  • 079f376dMove seven components' styles into Style blocksmre
  • 17d66feelog: #58 mergedmre
  • 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre
  • a85f7900Move route logic out of the project mapmre
  • 13dea5belog: #56 live, HM49 and HM58 startedmre
  • a31c8f2fdocs: tracker#36 remaining listmre
  • 975d06d1log: #36 live, DP66 startedmre
  • d6d03fa3mission: T36Bmre
  • e7512d00status: #36 rolled back, retry askedmre
  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre