mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 06:44:45 -05:00
12 lines
349 B
JavaScript
12 lines
349 B
JavaScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
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();
|