4 ms·
Tried it on 0.10.36 , 0.12 and io.js 1.4.3 to see difference between node versions. Almost identical results, except for v2, which has a huge difference... htt
by antouank 12y ago
Tried it on 0.10.36 , 0.12 and io.js 1.4.3 to see difference between node versions.
Almost identical results, except for v2, which has a huge difference... https://gist.github.com/AntouanK/ab089b3380a7ff73b8f7 https://gist.github.com/AntouanK/ab089b3380a7ff73b8f7
- sorenso 12y agoGreat work! In newer versions of the V8 engine the global opt is not de-optimized. Thanks for testing! -sorenso-
- antouank 12y agoA small repo with the files would be useful for other people to run the script. I made one here https://github.com/AntouanK/node-modules-benchmark https://github.com/AntouanK/node-modules-benchmark ( I removed the huge number of tests, I didn't want to wait more than a minute :D ) And maybe a way to get the results would help you see differences between machines and platforms.
- sorenso 12y agoThanks :) This is a splendid idea. I'm working on this now to be able to capture the results. I'll update the blog post with the repo. -sorenso-
- sorenso 12y agoI've made some changes to the scripts and pushed all to a github repo: https://github.com/5orenso/javascript-module-performance https://github.com/5orenso/javascript-module-performance Please test it and it will post the results to my API which was made in a hurry :)