Skip to content

Instantly share code, notes, and snippets.

@frangio
Created July 2, 2020 16:10
Show Gist options
  • Save frangio/e70e524e3357ea143df77b7d3197c0a7 to your computer and use it in GitHub Desktop.
Save frangio/e70e524e3357ea143df77b7d3197c0a7 to your computer and use it in GitHub Desktop.
$ node -r time-require -r solc-0.6.8 -e ''
Start time: (2020-07-02 16:09:07 UTC) [treshold=1%]
# module time %
1 ./soljson.js (node_modules/solc-0.6.8/soljson.js) 2.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 99%
2 solc-0.6.8 (node_modules/solc-0.6.8/index.js) 2.3s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
Total require(): 26
Total time: 2.3s
$ node -r time-require -r solc-0.6.9 -e ''
Start time: (2020-07-02 16:09:13 UTC) [treshold=1%]
# module time %
1 ./soljson.js (node_modules/solc-0.6.9/soljson.js) 5.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 99%
2 solc-0.6.9 (node_modules/solc-0.6.9/index.js) 5.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
Total require(): 26
Total time: 5.2s
$ node -r time-require -r solc-0.6.8 -e ''
Start time: (2020-07-02 16:07:22 UTC) [treshold=1%]
# module time %
1 ./soljson.js (node_modules/solc-0.6.8/soljson.js) 197ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 8%
2 solc-0.6.8 (node_modules/solc-0.6.8/index.js) 208ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 8%
Total require(): 26
Total time: 2.5s
$ node -r time-require -r solc-0.6.9 -e ''
Start time: (2020-07-02 16:07:26 UTC) [treshold=1%]
# module time %
1 ./soljson.js (node_modules/solc-0.6.9/soljson.js) 580ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 8%
2 solc-0.6.9 (node_modules/solc-0.6.9/index.js) 595ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 8%
Total require(): 26
Total time: 7.3s
npm init -y
# install 0.6.8 and 0.6.9 side by side
npm install solc-0.6.8@npm:[email protected]
npm install solc-0.6.9@npm:[email protected]
npm install time-require
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment