Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Performance #19

Open
jamestalmage opened this issue Nov 24, 2015 · 0 comments
Open

Require Performance #19

jamestalmage opened this issue Nov 24, 2015 · 0 comments

Comments

@jamestalmage
Copy link
Contributor



Start time: (2015-11-24 06:15:01 UTC) [treshold=1%,sorted]
# [order]  module                        time  %
   1 [43]  empower (node...er/index.js)  37ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 84%
   2 [36]  ./lib/decorat...ecorator.js)  33ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 75%
   3 [28]  escallmatch (...ch/index.js)  31ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 70%
   4  [9]  esprima (node.../esprima.js)  19ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 43%
   5 [19]  espurify (nod...fy/index.js)   5ms  ▇▇▇▇ 11%
   6  [7]  chalk (node_m...lk/index.js)   4ms  ▇▇▇ 9%
   7 [42]  define-proper...es/index.js)   2ms  ▇▇ 5%
   8 [11]  estraverse (n...traverse.js)   2ms  ▇▇ 5%
   9 [35]  ./decorate (n...decorate.js)   2ms  ▇▇ 5%
  10 [16]  ./lib/create-...hitelist.js)   2ms  ▇▇ 5%
  11 [27]  deep-equal (n...al/index.js)   2ms  ▇▇ 5%
  12  [4]  ansi-styles (...i-styles.js)   1ms  ▇ 2%
  13 [37]  ./lib/captura...pturable.js)   1ms  ▇ 2%
  14  [5]  strip-ansi (n...si/index.js)   1ms  ▇ 2%
  15 [14]  object-keys (...ys/index.js)   1ms  ▇ 2%
  16  [6]  has-color (no...or/index.js)   1ms  ▇ 2%
  17  [0]  text-table (n...le/index.js)   1ms  ▇ 2%
  18 [17]  isarray (node...ay/index.js)   1ms  ▇ 2%
  19 [18]  ./lib/clone-a...lone-ast.js)   1ms  ▇ 2%
  20  [8]  ./lib/default...-options.js)   1ms  ▇ 2%
  21 [33]  array-map (array-map)          1ms  ▇ 2%
  22 [21]  array-map (no...ap/index.js)   1ms  ▇ 2%
  23  [1]  date-time (no...me/index.js)   1ms  ▇ 2%
  24 [23]  array-reduce...ce/index.js)    1ms  ▇ 2%
  25  [2]  parse-ms (nod...ms/index.js)   1ms  ▇ 2%
  26  [3]  pretty-ms (no...ms/index.js)   1ms  ▇ 2%
  27 [26]  ./lib/is_argu...rguments.js)   1ms  ▇ 2%
Total require(): 44
Total time: 44ms

screenshot 2015-11-24 01 20 20

Looks like escallmatch is the big offender here. Moving to call-signature should help. If that ends up being unworkable, at least have escallmatch use acorn, so we only require one parser library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant