Skip to content

Instantly share code, notes, and snippets.

@jamestalmage
Last active January 2, 2016 00:30
Show Gist options
  • Save jamestalmage/873252568d8487bb1d95 to your computer and use it in GitHub Desktop.
Save jamestalmage/873252568d8487bb1d95 to your computer and use it in GitHub Desktop.
time-require of bluebird
// code
require('time-require')
require('bluebird')
// output
Start time: (2016-01-02 00:25:23 UTC) [treshold=1%]
# module time %
1 pretty-ms (node_modules/pretty-ms/index.js) 1ms ▇ 2%
2 ansi-styles (node_modu...tyles/ansi-styles.js) 1ms ▇ 2%
3 strip-ansi (node_modul.../strip-ansi/index.js) 1ms ▇ 2%
4 chalk (node_modules/chalk/index.js) 4ms ▇▇▇▇ 8%
5 ./promise (node_module...s/release/promise.js) 2ms ▇▇ 4%
6 ./util (node_modules/b...d/js/release/util.js) 2ms ▇▇ 4%
7 ./queue (node_modules/.../js/release/queue.js) 1ms ▇ 2%
8 ./async (node_modules/.../js/release/async.js) 2ms ▇▇ 4%
9 ./errors (node_modules...js/release/errors.js) 1ms ▇ 2%
10 ./thenables (node_modu...release/thenables.js) 1ms ▇ 2%
11 ./promise_array (node_...ase/promise_array.js) 1ms ▇ 2%
12 ./debuggability (node_...ase/debuggability.js) 1ms ▇ 2%
13 ./nodeback (node_modul.../release/nodeback.js) 1ms ▇ 2%
14 ./method (node_modules...js/release/method.js) 1ms ▇ 2%
15 ./util (util) 1ms ▇ 2%
16 ./synchronous_inspecti...ronous_inspection.js) 1ms ▇ 2%
17 ./join (node_modules/b...d/js/release/join.js) 1ms ▇ 2%
18 ./using.js (node_modul.../js/release/using.js) 1ms ▇ 2%
19 ./call_get.js (node_mo.../release/call_get.js) 1ms ▇ 2%
20 ./props.js (node_modul.../js/release/props.js) 1ms ▇ 2%
21 ./race.js (node_module...d/js/release/race.js) 1ms ▇ 2%
22 ./some.js (node_module...d/js/release/some.js) 1ms ▇ 2%
23 ./promisify.js (node_m...release/promisify.js) 1ms ▇ 2%
24 ./each.js (node_module...d/js/release/each.js) 1ms ▇ 2%
25 bluebird (node_modules.../release/bluebird.js) 46ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
Total require(): 82
Total time: 52ms
// output - verbose mode enabled
Start time: (2016-01-02 00:16:43 UTC) [treshold=0%]
# module time %
1 text-table (node_modul.../text-table/index.js) 1ms ▇ 2%
2 date-time (node_modules/date-time/index.js) 1ms ▇ 2%
3 parse-ms (node_modules/parse-ms/index.js) 0ms 0%
4 pretty-ms (node_modules/pretty-ms/index.js) 1ms ▇ 2%
5 ansi-styles (node_modu...tyles/ansi-styles.js) 1ms ▇ 2%
6 strip-ansi (node_modul.../strip-ansi/index.js) 1ms ▇ 2%
7 has-color (node_modules/has-color/index.js) 1ms ▇ 2%
8 chalk (node_modules/chalk/index.js) 4ms ▇▇▇▇ 8%
9 ./promise (node_module...s/release/promise.js) 1ms ▇ 2%
10 ./es5 (node_modules/bl...rd/js/release/es5.js) 0ms 0%
11 ./util (node_modules/b...d/js/release/util.js) 2ms ▇▇ 4%
12 ./es5 (node_modules/bl...d/js/release/util.js) 0ms 0%
13 ./util (util) 0ms 0%
14 ./schedule (node_modul.../release/schedule.js) 0ms 0%
15 ./queue (node_modules/.../js/release/queue.js) 0ms 0%
16 ./util (node_modules/b.../js/release/queue.js) 0ms 0%
17 ./async (node_modules/.../js/release/async.js) 2ms ▇▇ 4%
18 ./es5 (es5) 0ms 0%
19 ./util (util) 0ms 0%
20 ./errors (node_modules...js/release/errors.js) 1ms ▇ 2%
21 ./thenables (node_modu...release/thenables.js) 1ms ▇ 2%
22 ./util (util) 0ms 0%
23 ./promise_array (node_...ase/promise_array.js) 1ms ▇ 2%
24 ./util (util) 0ms 0%
25 ./context (node_module...s/release/context.js) 0ms 0%
26 ./debuggability (node_...ase/debuggability.js) 1ms ▇ 2%
27 ./errors (errors) 0ms 0%
28 ./util (util) 0ms 0%
29 ./finally (node_module...s/release/finally.js) 1ms ▇ 2%
30 ./util (util) 0ms 0%
31 ./catch_filter (node_m...ease/catch_filter.js) 1ms ▇ 2%
32 ./util (util) 0ms 0%
33 ./es5 (es5) 0ms 0%
34 ./util (util) 0ms 0%
35 ./errors (errors) 1ms ▇ 2%
36 ./es5 (es5) 0ms 0%
37 ./nodeback (node_modul.../release/nodeback.js) 1ms ▇ 2%
38 ./method (node_modules...js/release/method.js) 0ms 0%
39 ./util (util) 0ms 0%
40 ./bind (node_modules/b...d/js/release/bind.js) 0ms 0%
41 ./cancel (node_modules...js/release/cancel.js) 1ms ▇ 2%
42 ./util (util) 0ms 0%
43 ./direct_resolve (node...se/direct_resolve.js) 1ms ▇ 2%
44 ./synchronous_inspecti...ronous_inspection.js) 0ms 0%
45 ./join (node_modules/b...d/js/release/join.js) 1ms ▇ 2%
46 ./util (util) 0ms 0%
47 ./map.js (node_modules...rd/js/release/map.js) 0ms 0%
48 ./util (util) 0ms 0%
49 ./using.js (node_modul.../js/release/using.js) 1ms ▇ 2%
50 ./util (util) 0ms 0%
51 ./errors (errors) 0ms 0%
52 ./util (util) 0ms 0%
53 ./timers.js (node_modu...js/release/timers.js) 0ms 0%
54 ./util (util) 0ms 0%
55 ./generators.js (node_...elease/generators.js) 1ms ▇ 2%
56 ./errors (errors) 0ms 0%
57 ./util (util) 0ms 0%
58 ./nodeify.js (node_mod...s/release/nodeify.js) 0ms 0%
59 ./util (util) 0ms 0%
60 ./call_get.js (node_mo.../release/call_get.js) 1ms ▇ 2%
61 ./util (util) 0ms 0%
62 ./props.js (node_modul.../js/release/props.js) 1ms ▇ 2%
63 ./util (util) 0ms 0%
64 ./es5 (es5) 0ms 0%
65 ./race.js (node_module...d/js/release/race.js) 1ms ▇ 2%
66 ./util (util) 0ms 0%
67 ./reduce.js (node_modu...js/release/reduce.js) 0ms 0%
68 ./util (util) 0ms 0%
69 ./settle.js (node_modu...js/release/settle.js) 0ms 0%
70 ./util (util) 0ms 0%
71 ./some.js (node_module...d/js/release/some.js) 0ms 0%
72 ./util (util) 0ms 0%
73 ./errors (errors) 1ms ▇ 2%
74 ./errors (errors) 0ms 0%
75 ./promisify.js (node_m...release/promisify.js) 1ms ▇ 2%
76 ./util (util) 0ms 0%
77 ./nodeback (nodeback) 0ms 0%
78 ./errors (errors) 0ms 0%
79 ./any.js (node_modules...rd/js/release/any.js) 1ms ▇ 2%
80 ./each.js (node_module...d/js/release/each.js) 1ms ▇ 2%
81 ./filter.js (node_modu...js/release/filter.js) 0ms 0%
82 bluebird (node_modules.../release/bluebird.js) 45ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 85%
Total require(): 82
Total time: 53ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment