mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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();
|