Skip to content

Performance Analysis: #24

@jamestalmage

Description

@jamestalmage


Start time: (2015-11-24 06:05:00 UTC) [treshold=1%,sorted]
# [order]  module                        time  %
   1 [50]  power-assert-...er/index.js)  38ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 86%
   2 [49]  ./lib/create...b/create.js)   37ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 84%
   3 [33]  ./traverse (n...traverse.js)  21ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 48%
   4 [23]  acorn (node_m...st/acorn.js)  15ms  ▇▇▇▇▇▇▇▇▇▇ 34%
   5 [17]  stringifier (...er/index.js)   6ms  ▇▇▇▇ 14%
   6  [7]  chalk (node_m...lk/index.js)   4ms  ▇▇▇ 9%
   7 [36]  ./udiff (node...ib/udiff.js)   4ms  ▇▇▇ 9%
   8 [16]  ./strategies...rategies.js)    3ms  ▇▇ 7%
   9 [22]  estraverse (n...traverse.js)   3ms  ▇▇ 7%
  10 [35]  googlediff (n...ff/index.js)   3ms  ▇▇ 7%
  11 [34]  ./javascript/...mpressed.js)   2ms  ▇▇ 5%
  12 [20]  ./string-writ...g-writer.js)   1ms  ▇ 2%
  13 [21]  ./package.jso...ackage.json)   1ms  ▇ 2%
  14 [10]  xtend (node_m...mmutable.js)   1ms  ▇ 2%
  15  [4]  ansi-styles (...i-styles.js)   1ms  ▇ 2%
  16 [14]  array-reduce-...ht/index.js)   1ms  ▇ 2%
  17 [30]  ./esnode (nod...b/esnode.js)   1ms  ▇ 2%
  18 [31]  array-foreach...b/esnode.js)   1ms  ▇ 2%
  19  [5]  strip-ansi (n...si/index.js)   1ms  ▇ 2%
  20  [8]  traverse (nod...se/index.js)   1ms  ▇ 2%
  21 [18]  eastasianwidt...ianwidth.js)   1ms  ▇ 2%
  22 [19]  ./string-widt...ng-width.js)   1ms  ▇ 2%
  23 [39]  xtend (node_m...-options.js)   1ms  ▇ 2%
  24 [41]  ./built-in/as...ssertion.js)   1ms  ▇ 2%
  25 [44]  ./built-in/di.../diagram.js)   1ms  ▇ 2%
  26 [47]  array-foreach...ray-foreach)   1ms  ▇ 2%
  27 [48]  ./built-in/bi...pression.js)   1ms  ▇ 2%
  28 [24]  acorn-es7-plu...7-plugin.js)   1ms  ▇ 2%
Total require(): 51
Total time: 44ms

screenshot 2015-11-24 01 02 35

Biggest Offenders Are:

  • Acorn 15ms
  • Stringifier 6ms
  • Chalk 4ms (which I am guessing is a stringifier dependency).

Since AVA will print in the main thread, not the forked thread, is there a way to disable ever require-ing chalk?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions