mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -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();
|