node/benchmark/fixtures/require-builtins.js

44 lines
522 B
JavaScript

'use strict';
const list = [
'async_hooks',
'assert',
'buffer',
'child_process',
'console',
'constants',
'crypto',
'cluster',
'dgram',
'dns',
'domain',
'events',
'fs',
'http',
'http2',
'https',
'module',
'net',
'os',
'path',
'perf_hooks',
'process',
'querystring',
'readline',
'repl',
'stream',
'string_decoder',
'timers',
'tls',
'tty',
'url',
'util',
'vm',
'zlib',
];
for (let i = 0; i < list.length; ++i) {
const item = list[i];
require(item);
}