1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -05:00
denoland-deno/cli/bench/napi/bench_node.mjs

11 lines
273 B
JavaScript
Raw Normal View History

2023-07-08 14:34:08 -04:00
import { bench, run } from "mitata";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const lib = require("../../../tests/napi.node");
bench("warmup", () => {});
bench("napi_get_undefined", () => lib.test_get_undefined(0));
2023-07-08 14:34:08 -04:00
run();