mirror of
https://github.com/denoland/deno
synced 2024-08-27 20:09:17 +00:00
11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
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));
|
|
|
|
run();
|