MCPcopy Create free account
hub / github.com/babel/minify / getParseTime

Method getParseTime

scripts/benchmark.js:135–141  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

133 }
134
135 getParseTime(code) {
136 const start = process.hrtime();
137 exports.DUMMY = new Function(code);
138 const delta = process.hrtime(start);
139
140 return delta[0] * 1e3 + delta[1] / 1e6;
141 }
142 getFile(filename) {
143 return fs.readFileSync(filename, "utf-8").toString();
144 }

Callers 1

testMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMethod · 0.76