@jitaro/measure-fn@0.1.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
karelnguyen/measure-fnMeasure fn execution time.
This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers




JSR Score
100%
Published
a year ago (0.1.0)
measure-fn
measure-fn is a lightweight npm package that measures the execution time of JavaScript functions. It provides a simple and efficient way to analyze the performance of your functions.
Installation
You can install measure-fn via npm:
npm install measure-fn
Usage
import { measure } from 'measure-fn'; const yourFunction = () => { ... } console.log(measure(yourFunction)) // ms console.log(measure(yourFunction, 's')) // seconds
License
This project is licensed under the MIT License - see the LICENSE file for details.
Built and signed on
GitHub Actions
Add Package
deno add jsr:@jitaro/measure-fn
Import symbol
import * as measure_fn from "@jitaro/measure-fn";
Import directly with a jsr specifier
import * as measure_fn from "jsr:@jitaro/measure-fn";
Add Package
pnpm i jsr:@jitaro/measure-fn
pnpm dlx jsr add @jitaro/measure-fn
Import symbol
import * as measure_fn from "@jitaro/measure-fn";
Add Package
yarn add jsr:@jitaro/measure-fn
yarn dlx jsr add @jitaro/measure-fn
Import symbol
import * as measure_fn from "@jitaro/measure-fn";
Add Package
vlt install jsr:@jitaro/measure-fn
Import symbol
import * as measure_fn from "@jitaro/measure-fn";
Add Package
npx jsr add @jitaro/measure-fn
Import symbol
import * as measure_fn from "@jitaro/measure-fn";
Add Package
bunx jsr add @jitaro/measure-fn
Import symbol
import * as measure_fn from "@jitaro/measure-fn";