1.0.3 • Published 3 years ago

@0x2e757/benchmark v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Benchmark

Library for code performance testing using Node.js

Installation

npm i @0x2e757/benchmark

Usage example

If used in JavaScript import as:

const benchmark = require("@0x2e757/benchmark");

If used in TypeScript import as:

import * as benchmark from "@0x2e757/benchmark";

Benchmark your code:

benchmark.test({

    "case 1": () => {
        // Some code
    },

    "case 2": () => {
        // Another code
    },

});
1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago