MCPcopy Index your code
hub / github.com/nodejs/node / constructor

Method constructor

benchmark/_http-benchmarkers.js:103–110  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

101 */
102class TestDoubleBenchmarker {
103 constructor(type) {
104 // `type` is the type of benchmarker. Possible values are 'http', 'https',
105 // and 'http2'.
106 this.name = `test-double-${type}`;
107 this.executable = path.resolve(__dirname, '_test-double-benchmarker.js');
108 this.present = fs.existsSync(this.executable);
109 this.type = type;
110 }
111
112 create(options) {
113 process.env.duration ||= options.duration || 5;

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.45
existsSyncMethod · 0.45

Tested by

no test coverage detected