Performance test const
vs let
usage on require
for Node.js 6.10:
require('do-you-even-bench')([
{ name: 'test 1', fn: function() {
const path = require('path');
}
},
{ name: 'test 2', fn: function() {
let path = require('path');
}
}
]);
test 1 .... 2,547,746.72 op/s
test 2 .... 2,570,044.33 op/s