mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 00:20:38 +01:00
Use let and const in domain, es, events, fixtures, fs, http, http2 and misc. PR-URL: https://github.com/nodejs/node/pull/31518 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
16 lines
265 B
JavaScript
16 lines
265 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common.js');
|
|
const fs = require('fs');
|
|
|
|
const bench = common.createBenchmark(main, {
|
|
n: [60e4]
|
|
});
|
|
|
|
function main({ n }) {
|
|
bench.start();
|
|
for (let i = 0; i < n; ++i)
|
|
fs.readFileSync(__filename);
|
|
bench.end(n);
|
|
}
|