mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
18 lines
278 B
JavaScript
18 lines
278 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var common = require('../common.js');
|
||
|
var fs = require('fs');
|
||
|
|
||
|
var bench = common.createBenchmark(main, {
|
||
|
n: [60e4]
|
||
|
});
|
||
|
|
||
|
function main(conf) {
|
||
|
var n = +conf.n;
|
||
|
|
||
|
bench.start();
|
||
|
for (var i = 0; i < n; ++i)
|
||
|
fs.readFileSync(__filename);
|
||
|
bench.end(n);
|
||
|
}
|