warm-worktrees 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/BENCHMARKS.md +179 -0
  2. package/GUIDE.md +343 -0
  3. package/LICENSE.md +21 -0
  4. package/README.md +79 -2
  5. package/bench/results/adobe.json +1739 -0
  6. package/bench/results/build-lifecycle.json +1618 -0
  7. package/bench/results/cache-selection.json +3155 -0
  8. package/bench/results/cache-tuning.json +1554 -0
  9. package/bench/results/cargo-cache-scans.json +522 -0
  10. package/bench/results/cargo-snapshot-storage.json +1068 -0
  11. package/bench/results/checkout-selection.json +157 -0
  12. package/bench/results/compiler-seeds.json +634 -0
  13. package/bench/results/concurrent-publication.json +7999 -0
  14. package/bench/results/directory-export.json +4501 -0
  15. package/bench/results/firefox-checkout-control.json +4160 -0
  16. package/bench/results/four-worktrees.json +594 -0
  17. package/bench/results/incremental-cache-directories.json +555 -0
  18. package/bench/results/ninja.json +2133 -0
  19. package/bench/results/output-delivery.json +719 -0
  20. package/bench/results/per-checkout-archives.json +7044 -0
  21. package/bench/results/pool-maintenance.json +447 -0
  22. package/bench/results/rebuild-latency.json +138 -0
  23. package/bench/results/seed-scenarios.json +295 -0
  24. package/bench/results/snapshot-reclamation.json +885 -0
  25. package/bench/results/snapshot-writers.json +46 -0
  26. package/bench/results/source-mirror.json +150 -0
  27. package/bench/results/startup.json +703 -0
  28. package/bench/results/swift-scenarios.json +173 -0
  29. package/bench/results/upstream/firefox-ios.json +2395 -0
  30. package/bench/results/upstream/ripgrep.json +3275 -0
  31. package/bench/results/upstream/swift-syntax.json +2305 -0
  32. package/bench/results/upstream/vscode-seeded.json +3181 -0
  33. package/bench/results/upstream/vscode.json +2121 -0
  34. package/dist/Commander-LICENSE +22 -0
  35. package/dist/JSON5-LICENSE +23 -0
  36. package/dist/Zod-LICENSE +21 -0
  37. package/dist/benchmark.js +289 -0
  38. package/dist/cli.js +18337 -0
  39. package/dist/warm-copy.node +0 -0
  40. package/docs/assets/worktrees-cargo.png +0 -0
  41. package/package.json +55 -4
  42. package/profiles.json5 +82 -0
@@ -0,0 +1,594 @@
1
+ {
2
+ "project": "AEPServices",
3
+ "upstream": "https://github.com/adobe/aepsdk-core-ios",
4
+ "revision": "66f2ca1c4fab38669e3909d0b8983acb42bb22a1",
5
+ "command": [
6
+ "xcodebuild",
7
+ "-derivedDataPath",
8
+ "DerivedData",
9
+ "-project",
10
+ "AEPCore.xcodeproj",
11
+ "-scheme",
12
+ "AEPServices",
13
+ "-configuration",
14
+ "Debug",
15
+ "-destination",
16
+ "generic/platform=iOS Simulator",
17
+ "IPHONEOS_DEPLOYMENT_TARGET=15.0",
18
+ "ARCHS=arm64",
19
+ "CODE_SIGNING_ALLOWED=NO",
20
+ "COMPILER_INDEX_STORE_ENABLE=NO",
21
+ "CLANG_MODULE_CACHE_PATH=$(BUILD_DIR)/../../ModuleCache.noindex",
22
+ "COMPILATION_CACHE_CAS_PATH=$(BUILD_DIR)/../../CompilationCache.noindex",
23
+ "build"
24
+ ],
25
+ "sourceEdit": {
26
+ "file": "AEPServices/Sources/network/NetworkRequest.swift",
27
+ "find": "User-Agent",
28
+ "replace": "User-Agent-MARKER"
29
+ },
30
+ "toolchain": {
31
+ "macOS": "27.2.1",
32
+ "hardware": "Apple M3 Max",
33
+ "nodeDistribution": "Homebrew",
34
+ "xcode": "27.2 (27B52)",
35
+ "swift": "6.4.2",
36
+ "node": "26.13.1",
37
+ "typescript": "7.0.2",
38
+ "cargo": "cargo 1.100.0 (3acc79c0c 2026-11-05)",
39
+ "pnpm": "12.23.0",
40
+ "ninja": "1.13.2"
41
+ },
42
+ "warmBundleSha256": "dd20eaf131bfcb9a8cd281bea374faf031840b42b6349f99ded55f052b793ebb",
43
+ "maxConcurrent": 4,
44
+ "method": "Each round starts four clean checkouts at the same revision and primes them concurrently. Each timed batch changes the same line in each worktree to a distinct value. The second round reverses method and schedule order. Times span the first launch to the last exit; disk is cumulative since before priming, measured on an isolated APFS volume. Each framework binary was checked for its worktree-specific marker.",
45
+ "cases": [
46
+ {
47
+ "round": 1,
48
+ "mode": "direct",
49
+ "batches": [
50
+ {
51
+ "schedule": "prime",
52
+ "elapsedMs": 9530.236334,
53
+ "cumulativeBytes": 315125760,
54
+ "jobs": [
55
+ {
56
+ "tree": 0,
57
+ "startedMs": 0.9805840000003627,
58
+ "finishedMs": 9120.2745
59
+ },
60
+ {
61
+ "tree": 1,
62
+ "startedMs": 12.728209000000334,
63
+ "finishedMs": 9482.606209
64
+ },
65
+ {
66
+ "tree": 2,
67
+ "startedMs": 20.02320899999995,
68
+ "finishedMs": 9380.927
69
+ },
70
+ {
71
+ "tree": 3,
72
+ "startedMs": 26.095624999999927,
73
+ "finishedMs": 9530.160417000001
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "schedule": "serial",
79
+ "elapsedMs": 8879.066624999998,
80
+ "cumulativeBytes": 315707392,
81
+ "jobs": [
82
+ {
83
+ "tree": 0,
84
+ "startedMs": 0.34962499999892316,
85
+ "finishedMs": 2279.9792499999985
86
+ },
87
+ {
88
+ "tree": 1,
89
+ "startedMs": 2280.2097919999997,
90
+ "finishedMs": 4501.2855
91
+ },
92
+ {
93
+ "tree": 2,
94
+ "startedMs": 4501.5517500000005,
95
+ "finishedMs": 6690.985707999998
96
+ },
97
+ {
98
+ "tree": 3,
99
+ "startedMs": 6691.249041999998,
100
+ "finishedMs": 8878.756416999999
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "schedule": "parallel",
106
+ "elapsedMs": 2701.86175,
107
+ "cumulativeBytes": 316207104,
108
+ "jobs": [
109
+ {
110
+ "tree": 0,
111
+ "startedMs": 0.3349999999991269,
112
+ "finishedMs": 2604.7474169999987
113
+ },
114
+ {
115
+ "tree": 1,
116
+ "startedMs": 7.0593340000013995,
117
+ "finishedMs": 2671.246374999999
118
+ },
119
+ {
120
+ "tree": 2,
121
+ "startedMs": 12.592667000000802,
122
+ "finishedMs": 2671.1073340000003
123
+ },
124
+ {
125
+ "tree": 3,
126
+ "startedMs": 16.92541699999856,
127
+ "finishedMs": 2701.805124999999
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "round": 1,
135
+ "mode": "warm",
136
+ "batches": [
137
+ {
138
+ "schedule": "prime",
139
+ "elapsedMs": 10347.916042,
140
+ "cumulativeBytes": 319225856,
141
+ "jobs": [
142
+ {
143
+ "tree": 0,
144
+ "startedMs": 0.9530420000010054,
145
+ "finishedMs": 10347.823958999998,
146
+ "warm": {
147
+ "createdCheckout": true,
148
+ "queuedMs": 64.796583,
149
+ "syncMs": 355.783709,
150
+ "buildMs": 9679.742291999999,
151
+ "deliveryMs": 22.292208000000755,
152
+ "restoreMs": 31.752541000000008
153
+ }
154
+ },
155
+ {
156
+ "tree": 1,
157
+ "startedMs": 4.113792000000103,
158
+ "finishedMs": 10291.234,
159
+ "warm": {
160
+ "createdCheckout": true,
161
+ "queuedMs": 72.409875,
162
+ "syncMs": 343.28675,
163
+ "buildMs": 9621.580249999999,
164
+ "deliveryMs": 24.212874999999258,
165
+ "restoreMs": 28.972792
166
+ }
167
+ },
168
+ {
169
+ "tree": 2,
170
+ "startedMs": 7.735499999998865,
171
+ "finishedMs": 10193.353916999997,
172
+ "warm": {
173
+ "createdCheckout": true,
174
+ "queuedMs": 126.33429099999998,
175
+ "syncMs": 339.375208,
176
+ "buildMs": 9464.15025,
177
+ "deliveryMs": 26.721042000001034,
178
+ "restoreMs": 34.73320899999999
179
+ }
180
+ },
181
+ {
182
+ "tree": 3,
183
+ "startedMs": 10.817999999999302,
184
+ "finishedMs": 10330.058458999996,
185
+ "warm": {
186
+ "createdCheckout": true,
187
+ "queuedMs": 93.898833,
188
+ "syncMs": 353.415292,
189
+ "buildMs": 9627.171416,
190
+ "deliveryMs": 22.73762500000157,
191
+ "restoreMs": 31.829375000000027
192
+ }
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ "schedule": "serial",
198
+ "elapsedMs": 10376.230791999995,
199
+ "cumulativeBytes": 319754240,
200
+ "jobs": [
201
+ {
202
+ "tree": 0,
203
+ "startedMs": 0.26141700000152923,
204
+ "finishedMs": 2725.8643749999974,
205
+ "warm": {
206
+ "createdCheckout": false,
207
+ "queuedMs": 36.31824999999999,
208
+ "syncMs": 69.20666700000001,
209
+ "buildMs": 2384.4852499999997,
210
+ "deliveryMs": 17.877750000000106,
211
+ "restoreMs": 0
212
+ }
213
+ },
214
+ {
215
+ "tree": 1,
216
+ "startedMs": 2726.116833,
217
+ "finishedMs": 5279.605416999999,
218
+ "warm": {
219
+ "createdCheckout": false,
220
+ "queuedMs": 34.098625,
221
+ "syncMs": 64.997,
222
+ "buildMs": 2242.894584,
223
+ "deliveryMs": 19.35754199999974,
224
+ "restoreMs": 0
225
+ }
226
+ },
227
+ {
228
+ "tree": 2,
229
+ "startedMs": 5279.828999999998,
230
+ "finishedMs": 7814.588041999996,
231
+ "warm": {
232
+ "createdCheckout": false,
233
+ "queuedMs": 35.5275,
234
+ "syncMs": 64.286708,
235
+ "buildMs": 2234.9156669999998,
236
+ "deliveryMs": 18.97541599999977,
237
+ "restoreMs": 0
238
+ }
239
+ },
240
+ {
241
+ "tree": 3,
242
+ "startedMs": 7814.815624999996,
243
+ "finishedMs": 10376.148125,
244
+ "warm": {
245
+ "createdCheckout": false,
246
+ "queuedMs": 36.816874999999996,
247
+ "syncMs": 67.16479199999999,
248
+ "buildMs": 2235.755084,
249
+ "deliveryMs": 20.533500000000004,
250
+ "restoreMs": 0
251
+ }
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "schedule": "parallel",
257
+ "elapsedMs": 3095.315999999999,
258
+ "cumulativeBytes": 319524864,
259
+ "jobs": [
260
+ {
261
+ "tree": 0,
262
+ "startedMs": 0.2582909999982803,
263
+ "finishedMs": 3035.011040999998,
264
+ "warm": {
265
+ "createdCheckout": false,
266
+ "queuedMs": 32.995875,
267
+ "syncMs": 60.93425000000002,
268
+ "buildMs": 2704.4523750000003,
269
+ "deliveryMs": 13.070042000000285,
270
+ "restoreMs": 0
271
+ }
272
+ },
273
+ {
274
+ "tree": 1,
275
+ "startedMs": 1.264999999999418,
276
+ "finishedMs": 3086.688875,
277
+ "warm": {
278
+ "createdCheckout": false,
279
+ "queuedMs": 92.05783299999999,
280
+ "syncMs": 61.57133399999998,
281
+ "buildMs": 2690.139834,
282
+ "deliveryMs": 14.087082999999893,
283
+ "restoreMs": 0
284
+ }
285
+ },
286
+ {
287
+ "tree": 2,
288
+ "startedMs": 2.0402499999981956,
289
+ "finishedMs": 3095.2344999999987,
290
+ "warm": {
291
+ "createdCheckout": false,
292
+ "queuedMs": 43.53120799999999,
293
+ "syncMs": 60.501959,
294
+ "buildMs": 2741.670625,
295
+ "deliveryMs": 13.440290999999888,
296
+ "restoreMs": 0
297
+ }
298
+ },
299
+ {
300
+ "tree": 3,
301
+ "startedMs": 2.793290999994497,
302
+ "finishedMs": 2962.658457999998,
303
+ "warm": {
304
+ "createdCheckout": false,
305
+ "queuedMs": 57.951458,
306
+ "syncMs": 60.079708999999994,
307
+ "buildMs": 2578.085792,
308
+ "deliveryMs": 25.532333000000108,
309
+ "restoreMs": 0
310
+ }
311
+ }
312
+ ]
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "round": 2,
318
+ "mode": "warm",
319
+ "batches": [
320
+ {
321
+ "schedule": "prime",
322
+ "elapsedMs": 10140.739708000001,
323
+ "cumulativeBytes": 319152128,
324
+ "jobs": [
325
+ {
326
+ "tree": 0,
327
+ "startedMs": 0.9135410000017146,
328
+ "finishedMs": 10140.644458000002,
329
+ "warm": {
330
+ "createdCheckout": true,
331
+ "queuedMs": 61.405417,
332
+ "syncMs": 358.15312500000005,
333
+ "buildMs": 9479.049500000001,
334
+ "deliveryMs": 22.178584000001138,
335
+ "restoreMs": 28.14791599999998
336
+ }
337
+ },
338
+ {
339
+ "tree": 1,
340
+ "startedMs": 4.1947500000023865,
341
+ "finishedMs": 10060.622875000008,
342
+ "warm": {
343
+ "createdCheckout": true,
344
+ "queuedMs": 75.307708,
345
+ "syncMs": 378.546875,
346
+ "buildMs": 9356.559291,
347
+ "deliveryMs": 24.559165999999095,
348
+ "restoreMs": 31.385250000000013
349
+ }
350
+ },
351
+ {
352
+ "tree": 2,
353
+ "startedMs": 7.321458000005805,
354
+ "finishedMs": 10006.783208,
355
+ "warm": {
356
+ "createdCheckout": true,
357
+ "queuedMs": 88.61041700000001,
358
+ "syncMs": 370.95370900000006,
359
+ "buildMs": 9294.729374999999,
360
+ "deliveryMs": 25.2711249999993,
361
+ "restoreMs": 30.55937499999999
362
+ }
363
+ },
364
+ {
365
+ "tree": 3,
366
+ "startedMs": 9.910666000003403,
367
+ "finishedMs": 9990.011290999995,
368
+ "warm": {
369
+ "createdCheckout": true,
370
+ "queuedMs": 127.57258300000001,
371
+ "syncMs": 351.766208,
372
+ "buildMs": 9252.487625,
373
+ "deliveryMs": 25.369915999999648,
374
+ "restoreMs": 37.24320800000001
375
+ }
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "schedule": "parallel",
381
+ "elapsedMs": 3204.4449999999924,
382
+ "cumulativeBytes": 319684608,
383
+ "jobs": [
384
+ {
385
+ "tree": 0,
386
+ "startedMs": 0.2489999999961583,
387
+ "finishedMs": 3080.348582999999,
388
+ "warm": {
389
+ "createdCheckout": false,
390
+ "queuedMs": 35.602875,
391
+ "syncMs": 61.40783300000001,
392
+ "buildMs": 2744.6537909999997,
393
+ "deliveryMs": 35.14754200000016,
394
+ "restoreMs": 0
395
+ }
396
+ },
397
+ {
398
+ "tree": 1,
399
+ "startedMs": 1.1792500000010477,
400
+ "finishedMs": 3124.185958000002,
401
+ "warm": {
402
+ "createdCheckout": false,
403
+ "queuedMs": 42.73966600000001,
404
+ "syncMs": 61.06683299999999,
405
+ "buildMs": 2782.709583,
406
+ "deliveryMs": 22.384917000000314,
407
+ "restoreMs": 0
408
+ }
409
+ },
410
+ {
411
+ "tree": 2,
412
+ "startedMs": 1.9207080000051064,
413
+ "finishedMs": 3204.340750000003,
414
+ "warm": {
415
+ "createdCheckout": false,
416
+ "queuedMs": 99.33291599999998,
417
+ "syncMs": 63.85766699999999,
418
+ "buildMs": 2795.2699580000003,
419
+ "deliveryMs": 22.35333400000036,
420
+ "restoreMs": 0
421
+ }
422
+ },
423
+ {
424
+ "tree": 3,
425
+ "startedMs": 2.547082999997656,
426
+ "finishedMs": 3203.7953750000015,
427
+ "warm": {
428
+ "createdCheckout": false,
429
+ "queuedMs": 58.556540999999996,
430
+ "syncMs": 63.14075000000001,
431
+ "buildMs": 2838.054166,
432
+ "deliveryMs": 23.051292000000103,
433
+ "restoreMs": 0
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "schedule": "serial",
440
+ "elapsedMs": 10185.835584,
441
+ "cumulativeBytes": 319619072,
442
+ "jobs": [
443
+ {
444
+ "tree": 0,
445
+ "startedMs": 0.2655840000079479,
446
+ "finishedMs": 2546.462041999999,
447
+ "warm": {
448
+ "createdCheckout": false,
449
+ "queuedMs": 37.687124999999995,
450
+ "syncMs": 63.657083000000014,
451
+ "buildMs": 2219.8422499999997,
452
+ "deliveryMs": 11.718042000000423,
453
+ "restoreMs": 0
454
+ }
455
+ },
456
+ {
457
+ "tree": 1,
458
+ "startedMs": 2546.6486670000013,
459
+ "finishedMs": 5082.673125000001,
460
+ "warm": {
461
+ "createdCheckout": false,
462
+ "queuedMs": 39.458375000000004,
463
+ "syncMs": 64.587708,
464
+ "buildMs": 2223.0532089999997,
465
+ "deliveryMs": 14.03820799999994,
466
+ "restoreMs": 0
467
+ }
468
+ },
469
+ {
470
+ "tree": 2,
471
+ "startedMs": 5082.862208999999,
472
+ "finishedMs": 7632.742750000005,
473
+ "warm": {
474
+ "createdCheckout": false,
475
+ "queuedMs": 35.504583,
476
+ "syncMs": 66.571208,
477
+ "buildMs": 2245.0537910000003,
478
+ "deliveryMs": 12.694542000000183,
479
+ "restoreMs": 0
480
+ }
481
+ },
482
+ {
483
+ "tree": 3,
484
+ "startedMs": 7633.024417000008,
485
+ "finishedMs": 10185.762959,
486
+ "warm": {
487
+ "createdCheckout": false,
488
+ "queuedMs": 38.808959,
489
+ "syncMs": 65.310708,
490
+ "buildMs": 2246.699125,
491
+ "deliveryMs": 13.593582999999853,
492
+ "restoreMs": 0
493
+ }
494
+ }
495
+ ]
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "round": 2,
501
+ "mode": "direct",
502
+ "batches": [
503
+ {
504
+ "schedule": "prime",
505
+ "elapsedMs": 9679.830124999993,
506
+ "cumulativeBytes": 315113472,
507
+ "jobs": [
508
+ {
509
+ "tree": 0,
510
+ "startedMs": 0.50145799999882,
511
+ "finishedMs": 9516.194000000003
512
+ },
513
+ {
514
+ "tree": 1,
515
+ "startedMs": 10.380374999993364,
516
+ "finishedMs": 9578.482791999995
517
+ },
518
+ {
519
+ "tree": 2,
520
+ "startedMs": 15.016250000000582,
521
+ "finishedMs": 9568.238124999989
522
+ },
523
+ {
524
+ "tree": 3,
525
+ "startedMs": 19.057124999992084,
526
+ "finishedMs": 9679.760708000002
527
+ }
528
+ ]
529
+ },
530
+ {
531
+ "schedule": "parallel",
532
+ "elapsedMs": 2876.3167910000047,
533
+ "cumulativeBytes": 316051456,
534
+ "jobs": [
535
+ {
536
+ "tree": 0,
537
+ "startedMs": 0.32533300000068266,
538
+ "finishedMs": 2876.2624579999974
539
+ },
540
+ {
541
+ "tree": 1,
542
+ "startedMs": 8.72225000000617,
543
+ "finishedMs": 2860.115625000006
544
+ },
545
+ {
546
+ "tree": 2,
547
+ "startedMs": 15.42554100000416,
548
+ "finishedMs": 2856.257500000007
549
+ },
550
+ {
551
+ "tree": 3,
552
+ "startedMs": 21.886166000011144,
553
+ "finishedMs": 2793.2989579999994
554
+ }
555
+ ]
556
+ },
557
+ {
558
+ "schedule": "serial",
559
+ "elapsedMs": 8879.302291999993,
560
+ "cumulativeBytes": 315760640,
561
+ "jobs": [
562
+ {
563
+ "tree": 0,
564
+ "startedMs": 0.2636669999919832,
565
+ "finishedMs": 2231.2003750000003
566
+ },
567
+ {
568
+ "tree": 1,
569
+ "startedMs": 2231.449332999997,
570
+ "finishedMs": 4449.608207999991
571
+ },
572
+ {
573
+ "tree": 2,
574
+ "startedMs": 4449.8239170000015,
575
+ "finishedMs": 6668.084999999992
576
+ },
577
+ {
578
+ "tree": 3,
579
+ "startedMs": 6668.32295799999,
580
+ "finishedMs": 8879.202917000002
581
+ }
582
+ ]
583
+ }
584
+ ]
585
+ }
586
+ ],
587
+ "seed": [
588
+ "CompilationCache.noindex",
589
+ "ModuleCache.noindex",
590
+ "SDKStatCaches.noindex",
591
+ "SDKExplicitPrecompiledModules"
592
+ ],
593
+ "date": "2026-11-29"
594
+ }