MCPcopy Create free account
hub / github.com/nodejs/node / time

Function time

deps/v8/test/mjsunit/wasm/code-space-overflow.js:18–21  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

16
17const start = performance.now();
18function time(name) {
19 const ms_since_start = (performance.now() - start).toFixed(1).padStart(7);
20 print(`[${ms_since_start}] ${name}`);
21}
22
23// At the time of writing this test (Nov 2022), this module generated ~20MB of
24// code on x64 and ~18MB on arm64.

Callers 1

Calls 2

nowMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected