mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
10 lines
271 B
JavaScript
10 lines
271 B
JavaScript
|
import { run, bench } from "mitata";
|
||
|
import { createRequire } from "module";
|
||
|
|
||
|
const require = createRequire(import.meta.url);
|
||
|
const lib = require("../../../test_napi.node");
|
||
|
|
||
|
bench("warmup", () => {});
|
||
|
bench("napi_get_undefined", () => lib.test_get_undefined(0));
|
||
|
|
||
|
run();
|