profiler-md 0.2.0 → 0.3.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.
@@ -6,7 +6,7 @@ Took 6.17s over 47,806 samples (129.2µs per sample).
6
6
  | ----------------- | ----: | ------: | ------: |
7
7
  | ours | 91.3% | 5.63s | 43,666 |
8
8
  | regexp | 2.1% | 127.4ms | 987 |
9
- | native | 1.7% | 106.6ms | 817 |
9
+ | stdlib | 1.7% | 106.6ms | 817 |
10
10
  | garbage collector | 1.7% | 106.3ms | 814 |
11
11
  | program | 1.7% | 104.4ms | 816 |
12
12
  | third-party | 1.5% | 90.2ms | 691 |
@@ -18,28 +18,28 @@ Took 6.17s over 47,806 samples (129.2µs per sample).
18
18
 
19
19
  Functions ranked by time spent directly in the function body, excluding callees.
20
20
 
21
- | % | Time | Samples | Function | Location |
22
- | ----: | ------: | ------: | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
23
- | 15.6% | 966.3ms | 7,479 | `traverseObject` | uneval/src/index.ts:204:26 |
24
- | 15.0% | 926.9ms | 7,175 | `unevalObjectLike` | uneval/src/internal/object.ts:103:26 |
25
- | 8.5% | 527.0ms | 4,083 | `unevalObjectInternal` | uneval/src/internal/object.ts:68:30 |
26
- | 8.5% | 524.1ms | 4,059 | `unevalWithoutCustom` | uneval/src/internal/index.ts:14:37 |
27
- | 8.4% | 517.7ms | 4,010 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
28
- | 6.6% | 404.6ms | 3,129 | `unevalNumber` | uneval/src/internal/primitive.ts:12:29 |
29
- | 6.0% | 372.6ms | 2,887 | `traverse` | uneval/src/index.ts:164:20 |
30
- | 5.8% | 359.6ms | 2,784 | `unevalArray` | uneval/src/internal/collection.ts:7:47 |
31
- | 4.3% | 266.6ms | 2,064 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
32
- | 3.5% | 217.0ms | 1,681 | `getType` | uneval/src/internal/type.ts:4:24 |
33
- | 2.7% | 165.8ms | 1,288 | `unevalObjectLiteralKey` | uneval/src/internal/object.ts:384:32 |
34
- | 2.5% | 154.6ms | 1,196 | `createState` | uneval/src/index.ts:144:21 |
35
- | 2.1% | 127.4ms | 987 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<native>` |
36
- | 1.7% | 106.3ms | 814 | `(garbage collector)` | `<native>` |
37
- | 1.7% | 104.4ms | 816 | `(program)` | `<native>` |
38
- | 0.9% | 53.3ms | 411 | `unevalString` | uneval/src/internal/primitive.ts:133:29 |
39
- | 0.7% | 44.8ms | 348 | `unevalObject` | uneval/src/internal/object.ts:20:29 |
40
- | 0.7% | 40.9ms | 317 | `uneval` | uneval/src/index.ts:75:16 |
41
- | 0.6% | 39.5ms | 306 | `isObject` | uneval/src/internal/object.ts:434:25 |
42
- | 0.3% | 20.5ms | 157 | `uniformIntInternal` | uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:7:28 |
21
+ | % | Time | Samples | Function | Location |
22
+ | ----: | ------: | ------: | ------------------------------------------------ | --------------------------------------- |
23
+ | 15.6% | 966.3ms | 7,479 | `traverseObject` | uneval/src/index.ts:204:26 |
24
+ | 15.0% | 926.9ms | 7,175 | `unevalObjectLike` | uneval/src/internal/object.ts:103:26 |
25
+ | 8.5% | 527.0ms | 4,083 | `unevalObjectInternal` | uneval/src/internal/object.ts:68:30 |
26
+ | 8.5% | 524.1ms | 4,059 | `unevalWithoutCustom` | uneval/src/internal/index.ts:14:37 |
27
+ | 8.4% | 517.7ms | 4,010 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
28
+ | 6.6% | 404.6ms | 3,129 | `unevalNumber` | uneval/src/internal/primitive.ts:12:29 |
29
+ | 6.0% | 372.6ms | 2,887 | `traverse` | uneval/src/index.ts:164:20 |
30
+ | 5.8% | 359.6ms | 2,784 | `unevalArray` | uneval/src/internal/collection.ts:7:47 |
31
+ | 4.3% | 266.6ms | 2,064 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
32
+ | 3.5% | 217.0ms | 1,681 | `getType` | uneval/src/internal/type.ts:4:24 |
33
+ | 2.7% | 165.8ms | 1,288 | `unevalObjectLiteralKey` | uneval/src/internal/object.ts:384:32 |
34
+ | 2.5% | 154.6ms | 1,196 | `createState` | uneval/src/index.ts:144:21 |
35
+ | 2.1% | 127.4ms | 987 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<native>` |
36
+ | 1.7% | 106.3ms | 814 | `(garbage collector)` | `<native>` |
37
+ | 1.7% | 104.4ms | 816 | `(program)` | `<native>` |
38
+ | 0.9% | 53.3ms | 411 | `unevalString` | uneval/src/internal/primitive.ts:133:29 |
39
+ | 0.7% | 44.8ms | 348 | `unevalObject` | uneval/src/internal/object.ts:20:29 |
40
+ | 0.7% | 40.9ms | 317 | `uneval` | uneval/src/index.ts:75:16 |
41
+ | 0.6% | 39.5ms | 306 | `isObject` | uneval/src/internal/object.ts:434:25 |
42
+ | 0.2% | 13.9ms | 110 | `(anonymous)` | uneval/scripts/profile.ts:1:1 |
43
43
 
44
44
  #### Lines
45
45
 
@@ -192,13 +192,15 @@ Lines ranked by contribution to each function's self time.
192
192
  | 72.9% | 28.8ms | 223 | uneval/src/internal/object.ts:436 |
193
193
  | 27.1% | 10.7ms | 83 | uneval/src/internal/object.ts:435 |
194
194
 
195
- ##### `uniformIntInternal` (uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:7:28)
195
+ ##### `(anonymous)` (uneval/scripts/profile.ts:1:1)
196
196
 
197
- | % | Time | Samples | Location |
198
- | ----: | -----: | ------: | ------------------------------------------------------------------------------------------------------ |
199
- | 98.0% | 20.1ms | 154 | uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:11 |
200
- | 1.3% | 0.3ms | 2 | uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:8 |
201
- | 0.7% | 0.1ms | 1 | uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:10 |
197
+ | % | Time | Samples | Location |
198
+ | ----: | -----: | ------: | ---------------------------- |
199
+ | 84.9% | 11.8ms | 90 | uneval/scripts/profile.ts:16 |
200
+ | 11.3% | 1.6ms | 12 | uneval/scripts/profile.ts:15 |
201
+ | 1.9% | 0.3ms | 2 | uneval/scripts/profile.ts:9 |
202
+ | 0.9% | 0.1ms | 1 | uneval/scripts/profile.ts:8 |
203
+ | 0.9% | 0.1ms | 1 | uneval/scripts/profile.ts:14 |
202
204
 
203
205
  #### Callers
204
206
 
@@ -320,39 +322,32 @@ Callers ranked by contribution to each function's self time. Caller attribution
320
322
  | -----: | -----: | ------: | ---------------- | ---------------------------------- |
321
323
  | 100.0% | 39.5ms | 306 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
322
324
 
323
- ##### `uniformIntInternal` (uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:7:28)
324
-
325
- | % | Time | Samples | Caller | Location |
326
- | ----: | -----: | ------: | ------------------------- | ---------------------------------------------------------------------------------------------------------- |
327
- | 96.7% | 19.8ms | 152 | `uniformInt` | uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:127:20 |
328
- | 3.3% | 0.7ms | 5 | `uniformArrayIntInternal` | uneval/node_modules/.pnpm/pure-rand@8.4.0/node_modules/pure-rand/lib/esm/distribution/uniformInt.js:83:33 |
329
-
330
325
  ### Total time
331
326
 
332
327
  Functions ranked by total time spent in the function and all its callees.
333
328
 
334
- | % | Time | Samples | Function | Location |
335
- | ----: | ------: | ------: | ------------------------------------------------ | -------------------------------------------------------------------------------------------- |
336
- | 94.3% | 5.82s | 45,097 | `(anonymous)` | uneval/scripts/profile.ts:1:1 |
337
- | 92.6% | 5.72s | 44,294 | `uneval` | uneval/src/index.ts:75:16 |
338
- | 64.4% | 3.97s | 30,805 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
339
- | 63.3% | 3.91s | 30,296 | `unevalObject` | uneval/src/internal/object.ts:20:29 |
340
- | 63.0% | 3.89s | 30,145 | `unevalObjectInternal` | uneval/src/internal/object.ts:68:30 |
341
- | 48.6% | 3s | 23,240 | `unevalObjectLike` | uneval/src/internal/object.ts:103:26 |
342
- | 28.0% | 1.73s | 13,398 | `unevalArray` | uneval/src/internal/collection.ts:7:47 |
343
- | 27.7% | 1.70s | 13,233 | `createState` | uneval/src/index.ts:144:21 |
344
- | 25.2% | 1.55s | 12,037 | `traverse` | uneval/src/index.ts:164:20 |
345
- | 23.7% | 1.46s | 11,338 | `traverseObject` | uneval/src/index.ts:204:26 |
346
- | 19.4% | 1.20s | 9,304 | `unevalObjectLiteralKey` | uneval/src/internal/object.ts:384:32 |
347
- | 14.7% | 907.7ms | 7,029 | `unevalWithoutCustom` | uneval/src/internal/index.ts:14:37 |
348
- | 9.2% | 571.0ms | 4,421 | `unevalString` | uneval/src/internal/primitive.ts:133:29 |
349
- | 8.4% | 517.7ms | 4,010 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
350
- | 6.6% | 404.6ms | 3,129 | `unevalNumber` | uneval/src/internal/primitive.ts:12:29 |
351
- | 3.5% | 217.0ms | 1,681 | `getType` | uneval/src/internal/type.ts:4:24 |
352
- | 2.1% | 127.4ms | 987 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<native>` |
353
- | 1.7% | 106.3ms | 814 | `(garbage collector)` | `<native>` |
354
- | 1.7% | 104.4ms | 816 | `(program)` | `<native>` |
355
- | 1.4% | 87.1ms | 667 | `sample` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2551:16 |
329
+ | % | Time | Samples | Function | Location |
330
+ | ----: | ------: | ------: | ------------------------------------------------ | --------------------------------------- |
331
+ | 94.3% | 5.82s | 45,097 | `(anonymous)` | uneval/scripts/profile.ts:1:1 |
332
+ | 92.6% | 5.72s | 44,294 | `uneval` | uneval/src/index.ts:75:16 |
333
+ | 64.4% | 3.97s | 30,805 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
334
+ | 63.3% | 3.91s | 30,296 | `unevalObject` | uneval/src/internal/object.ts:20:29 |
335
+ | 63.0% | 3.89s | 30,145 | `unevalObjectInternal` | uneval/src/internal/object.ts:68:30 |
336
+ | 48.6% | 3s | 23,240 | `unevalObjectLike` | uneval/src/internal/object.ts:103:26 |
337
+ | 28.0% | 1.73s | 13,398 | `unevalArray` | uneval/src/internal/collection.ts:7:47 |
338
+ | 27.7% | 1.70s | 13,233 | `createState` | uneval/src/index.ts:144:21 |
339
+ | 25.2% | 1.55s | 12,037 | `traverse` | uneval/src/index.ts:164:20 |
340
+ | 23.7% | 1.46s | 11,338 | `traverseObject` | uneval/src/index.ts:204:26 |
341
+ | 19.4% | 1.20s | 9,304 | `unevalObjectLiteralKey` | uneval/src/internal/object.ts:384:32 |
342
+ | 14.7% | 907.7ms | 7,029 | `unevalWithoutCustom` | uneval/src/internal/index.ts:14:37 |
343
+ | 9.2% | 571.0ms | 4,421 | `unevalString` | uneval/src/internal/primitive.ts:133:29 |
344
+ | 8.4% | 517.7ms | 4,010 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
345
+ | 6.6% | 404.6ms | 3,129 | `unevalNumber` | uneval/src/internal/primitive.ts:12:29 |
346
+ | 3.5% | 217.0ms | 1,681 | `getType` | uneval/src/internal/type.ts:4:24 |
347
+ | 2.1% | 127.4ms | 987 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<native>` |
348
+ | 1.7% | 106.3ms | 814 | `(garbage collector)` | `<native>` |
349
+ | 1.7% | 104.4ms | 816 | `(program)` | `<native>` |
350
+ | 0.6% | 39.5ms | 306 | `isObject` | uneval/src/internal/object.ts:434:25 |
356
351
 
357
352
  #### Callees
358
353
 
@@ -360,13 +355,11 @@ Callees ranked by contribution to each function's total time. Callee attribution
360
355
 
361
356
  ##### `(anonymous)` (uneval/scripts/profile.ts:1:1)
362
357
 
363
- | % | Time | Samples | Callee | Location |
364
- | ----: | -----: | ------: | ---------------- | -------------------------------------------------------------------------------------------- |
365
- | 98.2% | 5.71s | 44,286 | `uneval` | uneval/src/index.ts:75:16 |
366
- | 1.5% | 87.1ms | 667 | `sample` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2551:16 |
367
- | 0.0% | 2.1ms | 16 | `anything` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:8168:18 |
368
- | 0.0% | 1.7ms | 13 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
369
- | 0.0% | 0.6ms | 5 | `traverseObject` | uneval/src/index.ts:204:26 |
358
+ | % | Time | Samples | Callee | Location |
359
+ | ----: | ----: | ------: | ---------------- | ---------------------------------- |
360
+ | 98.2% | 5.71s | 44,286 | `uneval` | uneval/src/index.ts:75:16 |
361
+ | 0.0% | 1.7ms | 13 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
362
+ | 0.0% | 0.6ms | 5 | `traverseObject` | uneval/src/index.ts:204:26 |
370
363
 
371
364
  ##### `uneval` (uneval/src/index.ts:75:16)
372
365
 
@@ -462,16 +455,9 @@ Callees ranked by contribution to each function's total time. Callee attribution
462
455
  | ----: | ------: | ------: | --------------- | --------------------------------------- |
463
456
  | 90.7% | 517.7ms | 4,010 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
464
457
 
465
- ##### `sample` (uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2551:16)
466
-
467
- | % | Time | Samples | Callee | Location |
468
- | ----: | -----: | ------: | -------------- | -------------------------------------------------------------------------------------------- |
469
- | 99.7% | 86.8ms | 665 | `mapHelper` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:58:20 |
470
- | 0.3% | 0.3ms | 2 | `streamSample` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2524:22 |
471
-
472
458
  ## Hottest call stacks
473
459
 
474
- Call stacks ranked by time spent in their top frame.
460
+ Call stacks ranked by time spent in their leaf frame.
475
461
 
476
462
  Common call stack: `uneval` (uneval/src/index.ts:75:16) ← `(anonymous)` (uneval/scripts/profile.ts:1:1)
477
463