1.0.2 • Published 10 months ago

hyprbench v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Hyprbench

  • Lightweight and basic benchmark module.

Installation

  • We are recommend to use pnpm.
pnpm install hyprbench

Usage

// ESM
import Benchmark from 'hyprbench';

// CJS
const Benchmark = require('hyprbench'); // or require('hyprbench/cjs')

const benchmark = new Benchmark();

benchmark.on('cyclone', (data) => console.log(data));
benchmark.on('complete', (data) => console.log(data));

benchmark.set('test', () => console.log('hyprbench'));

benchmark.run(1000); // Runs 1000 times. (default)
1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago