Install depot_tools
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=`pwd`/depot_tools:"$PATH"
Build v8
$ fetch v8
| var fs = require('fs') | |
| for (var i = 0; i < 10000; i++) { | |
| printLength(__filename) | |
| } | |
| function printLength (filename) { | |
| fs.readFile(filename, foo) | |
| function foo (err, buf) { |