2017-03-12 08:41:20 +08:00
|
|
|
'use strict';
|
|
|
|
|
2017-09-14 09:48:53 +08:00
|
|
|
const common = require('../common.js');
|
|
|
|
const fs = require('fs');
|
2017-03-12 08:41:20 +08:00
|
|
|
|
2017-09-14 09:48:53 +08:00
|
|
|
const bench = common.createBenchmark(main, {
|
2017-03-12 08:41:20 +08:00
|
|
|
n: [60e4]
|
|
|
|
});
|
|
|
|
|
2017-12-30 10:57:52 +08:00
|
|
|
function main({ n }) {
|
2017-03-12 08:41:20 +08:00
|
|
|
bench.start();
|
2020-01-25 01:12:49 +08:00
|
|
|
for (let i = 0; i < n; ++i)
|
2017-03-12 08:41:20 +08:00
|
|
|
fs.readFileSync(__filename);
|
|
|
|
bench.end(n);
|
|
|
|
}
|