gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita016e9aba016e9abReapply "Merge branch 'rv39'"mrea016e9ab/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

  • a016e9abReapply "Merge branch 'rv39'"mre
  • f29e2502log: RV39 gate fixmre
  • ad529ac1log: m572 verdictmre
  • 1b37d404RV39 on hold: hybriel#308mre
  • f9127c68Revert "Merge branch 'rv39'"mre
  • cd39f3d3log: hybriel#308mre
  • 51341d6elog: RV39 deploy startedmre
  • c9e29e06Merge branch 'rv39'mre
  • 0f8d1fdclog: RV39 report, browser 387/2mre
  • 50249b0bRV39: reportmre
  • 10ed9581compose: HL_GC_STATS=1mre
  • 955da19bRV39: re-vendor Hybriel set day39 (source 51e921d7, bin 6b481aa7)mre
  • 64b8d1dclog: RV39 startedmre
  • 1f2df72amission RV39mre
  • 6c1936f9log+status: GC planmre
  • 2846a840log: m569 result, GC hypothesismre
  • b24cd2d5log: Anton on hl:fetch, mission 569mre
  • 7d42cac1log+status: SL1 measured, fetch stalls remainmre
  • 8e5f2ceflog: SL1 deployedmre
  • 29f34212log: SL1 deploy startedmre