gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb5357ac4b5357ac4Pack the people order and release completed startup arraysmreb5357ac4/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

  • b5357ac4Pack the people order and release completed startup arraysmre
  • 2e7d6257log: HM1 startedmre
  • 2f790465mission HM1: heap object breakdownmre
  • a18957falog: evening re-measure after CBmre
  • aac9a98dlog: evening re-measure startmre
  • 45163bd4log: person/tmdb error hypothesismre
  • cb38de2blog: swap 503 causemre
  • fd10c3d5log: CB livemre
  • 7557c025log: CB deploy try 2mre
  • 06a7534aMerge branch 'cb'mre
  • 2f8030d6log: CB gates greenmre
  • 498bf644log: CB gates startmre
  • f59c2847gc1: bound the five request caches (shows.hl cacheLimit)mre
  • 6ea2c6d6log: morning re-measure 11-04mre
  • 446290f0log: GC1 livemre
  • 8e6aa91dlog: GC1 deploy retrymre
  • 87ad2dc1log: GC1 deployingmre
  • 53f10fb8Merge branch 'gc1-deploy'mre
  • 7fcbf1d2log: GC1 deploy GOmre
  • 1fb6664bcompose: TRACKER_QSTATS=1 (GC1 measurement)mre